/* Iman Tiles: paving stone factory, Hargeisa.
   Premium building-materials look: big real project photos, short confident copy, clear specs,
   lots of white space, one obvious call to action (WhatsApp). Brand: navy ink, factory green,
   blue, three-tone cube mark. One deliberate light look with explicit colours. */

/* Self-hosted fonts (Latin subset covers English and Somali). The "Fallback" faces are Arial,
   resized to the same proportions so the page does not jump when the real fonts arrive. */
@font-face {
  font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600; font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback"; src: local("Arial");
  size-adjust: 122%; ascent-override: 72%; descent-override: 17%; line-gap-override: 0%; /* matched to Archivo at the 112% width used for headings */
}
@font-face {
  font-family: "Instrument Sans Fallback"; src: local("Arial");
  size-adjust: 101%; ascent-override: 95.5%; descent-override: 25.3%; line-gap-override: 0%;
}

:root {
  --cement: #E8EDF0;
  --paper: #F7F9FA;
  --white: #FFFFFF;
  --ink: #12203A;
  --ink-2: #24345A;
  --slate: #586477;
  --line: #D2DAE2;
  --green: #17894F;
  --green-text: #127A45;   /* green for text on light backgrounds (4.5:1) */
  --green-dark: #0E5E35;
  --blue: #1F4FA0;
  --green-bright: #4CC48A;
  --on-dark: #E9EFF5;
  --blue-bright: #6E9BE6;
  --ink-raised: #1A2A48;
  --ink-line: #2D3D60;
  --on-dark-muted: #A2B0C4;
  --ok: #17894F;
  --err: #B23A2B;
  --wa: #25D366;
  --ochre: #E3A82B;
  --placeholder: #DCE2E7;  /* behind photos while they load */
  --placeholder-dark: #6E7C94;
  --placeholder-form: #7D8AA1;
  --ink-shadow-08: rgb(18 32 58 / 0.08);
  --ink-shadow-15: rgb(18 32 58 / 0.15);
  --ink-shadow-18: rgb(18 32 58 / 0.18);
  --ink-shadow-25: rgb(18 32 58 / 0.25);
  --ink-veil-85: rgb(18 32 58 / 0.85);
  --ink-veil-88: rgb(18 32 58 / 0.88);
  --backdrop: rgb(10 18 34 / 0.88);
  --shadow-dark-30: rgb(0 0 0 / 0.3);
  --media-black: #000;
  --white-75: rgb(255 255 255 / .75);
  --green-glow-16: rgb(76 196 138 / 0.16);
  --green-glow-18: rgb(76 196 138 / 0.18);
  --green-glow-22: rgb(76 196 138 / 0.22);
  --err-bright: #E5766A;
  --err-soft: #F09C92;
  --err-glow-18: rgb(229 118 106 / 0.18);
  --wa-icon: #1DA851;
  --todo-bg: #FFE58A;
  --todo-ink: #5A4300;

  --display: "Archivo", "Archivo Fallback", "Arial Narrow", Arial, sans-serif;
  --body: "Instrument Sans", "Instrument Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --step-3: clamp(2rem, 1.3rem + 3.2vw, 3.8rem);

  --radius: 4px;
  --radius-lg: 14px;
  --max: 1180px;
  --bar: 0px; /* height of the phone bar at the bottom */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar);
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 750; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Unknown facts (null in js/contact-config.js): hidden on the live site, marked on localhost */
html:not(.show-todo) [data-missing], [data-present] { display: none !important; }
.show-todo [data-missing] { outline: 2px dashed var(--ochre); outline-offset: 2px; }
.show-todo [data-empty]::before {
  content: "TODO " attr(data-site); display: inline-block; padding: 1px 6px; border-radius: 4px;
  background: var(--todo-bg); color: var(--todo-ink); font: 600 0.72rem/1.4 var(--mono); letter-spacing: 0; text-transform: none;
}

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--ink); color: var(--paper);
  font: 600 0.98rem/1.15 var(--body); text-align: center;
  text-decoration: none; border: 2px solid var(--ink); border-radius: 10px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--wa-solid { background: var(--green-text); border-color: var(--green-text); color: var(--white); } /* #127A45: white text at 5.4:1 */
.btn--wa-solid:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--green { background: var(--green-text); border-color: var(--green-text); color: var(--white); }
.btn--green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 1. Top strip */
.topstrip { background: var(--ink); color: var(--on-dark); font-size: 0.86rem; }
.topstrip__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; padding-block: 6px; }
.topstrip p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topstrip a { color: var(--white); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.topstrip a:hover { text-decoration: underline; }
.topstrip__contact { display: none !important; }
@media (min-width: 900px) { .topstrip__contact { display: flex !important; } }

/* 2. Header */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 28px; height: 32px; }
.brand__name { font: 500 1.18rem/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.brand__name b { font-weight: 850; }
.nav__links { display: none; align-items: center; gap: 26px; margin-right: 8px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.96rem; padding-block: 12px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__links a:hover::after { transform: scaleX(1); }
.lang { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang__btn {
  min-width: 44px; min-height: 38px; display: grid; place-items: center;
  font: 600 0.84rem/1 var(--body); color: var(--slate); text-decoration: none;
  border-radius: 999px; border: 0; background: none; cursor: pointer; transition: background .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-current="true"], .lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav__wa { display: none; min-height: 44px; padding: 10px 16px; font-size: 0.92rem; }
.nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 10px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.mobile-menu a { padding: 14px 0; min-height: 48px; font: 700 1.3rem/1.1 var(--display); font-stretch: 115%; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 360px) { .brand__name { font-size: 1rem; } .brand__mark { width: 24px; height: 28px; } }
@media (min-width: 700px) { .nav__wa { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* 3. Hero */
.hero { padding-block: clamp(22px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr 1fr; gap: 56px; } }
.hero__copy { display: grid; gap: 18px; min-width: 0; }
.hero__title { font-size: clamp(2.15rem, 1.1rem + 4.6vw, 4.6rem); font-weight: 850; font-stretch: 112%; line-height: 0.98; }
.hero__title span { color: var(--green-text); }
.hero__lead { font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem); color: var(--slate); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 520px) { .hero__actions .btn { width: 100%; } }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 0.95rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks .ico { width: 18px; height: 18px; color: var(--green-text); }
.hero__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .hero__photo { aspect-ratio: 4 / 5; } }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.hero__price {
  position: absolute; top: 14px; right: 14px; padding: 8px 12px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-size: 0.9rem; box-shadow: 0 6px 20px var(--ink-shadow-18);
}
.hero__job {
  position: absolute; left: 14px; bottom: 14px; right: 14px; max-width: 340px; padding: 12px 14px; border-radius: 10px;
  background: var(--ink-veil-88); color: var(--on-dark); display: grid; gap: 2px; font-size: 0.92rem; backdrop-filter: blur(6px);
}
.hero__job span { font: 600 0.8rem/1.3 var(--body); color: var(--green-bright); }
.hero__job b { font-weight: 600; }
@media (max-width: 899px) {
  .hero { padding-top: 12px; }
  .hero__grid { gap: 20px; }
  .hero__photo { order: -1; aspect-ratio: auto; height: clamp(190px, 31svh, 300px); }
  .hero__photo img { object-position: 50% 80%; }
  .hero__job { left: 10px; right: auto; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 8px; font-size: 0.82rem; }
  .hero__job span { display: none; }
  .hero__job b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :lang(so) .hero__photo { height: clamp(170px, 24svh, 260px); }
}

/* 4. Numbers */
.numbers { background: var(--ink); color: var(--on-dark); }
.numbers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding-block: 28px; }
@media (min-width: 800px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); padding-block: 36px; } }
.numbers__grid > div { padding: 12px 16px 12px 0; display: grid; gap: 4px; align-content: start; }
.numbers b { font: 800 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--display); font-stretch: 112%; color: var(--white); }
.numbers span { color: var(--on-dark-muted); font-size: 0.92rem; }
.numbers b span { color: inherit; font-size: inherit; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .section__intro { color: var(--on-dark-muted); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.section__head--row > div:not(.chipbar) { display: grid; gap: 14px; }
.section__intro { color: var(--slate); font-size: 1.06rem; max-width: 58ch; }

/* 5 & 11. Three columns */
.cols3 { display: grid; gap: 28px; }
@media (min-width: 800px) { .cols3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.col { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.col p { color: var(--slate); }

/* 6. Uses */
.uses { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .uses { grid-template-columns: repeat(4, 1fr); } }
.use {
  display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.use:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px var(--ink-shadow-08); }
.use p { color: var(--slate); font-size: 0.96rem; }
.use__mm { justify-self: start; font: 600 0.84rem/1 var(--body); padding: 6px 10px; border-radius: 999px; background: var(--cement); color: var(--ink); }
.use--strong .use__mm { background: var(--ink); color: var(--white); }
.use--bulk { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.use--bulk p { color: var(--on-dark-muted); }
.use--bulk .use__mm { background: var(--ink-raised); color: var(--on-dark); }
.use__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--green-text); min-height: 24px; }
.use--bulk .use__go { color: var(--green-bright); }
.use__go .ico { width: 18px; height: 18px; }

/* 7. Designs */
.chipbar { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn {
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font: 600 0.92rem/1 var(--body); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chipbtn:hover { border-color: var(--ink); }
.chipbtn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.designs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .designs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .designs { grid-template-columns: repeat(3, 1fr); } }
.design { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.design__media { position: relative; background: var(--placeholder); aspect-ratio: 4 / 3; }
.design__media img { width: 100%; height: 100%; object-fit: cover; }
.design__thumbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.design__thumbs button {
  width: 48px; height: 48px; padding: 0; border: 2px solid var(--white-75); border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--placeholder); opacity: .8;
}
.design__thumbs button[aria-pressed="true"] { border-color: var(--white); opacity: 1; box-shadow: 0 0 0 2px var(--green); }
.design__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.design__body { padding: 18px 20px 20px; display: grid; gap: 12px; flex: 1; align-content: start; }
.design__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.design__shape { font: 600 0.84rem/1.1 var(--body); color: var(--blue); }
.specs { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.specs dt { color: var(--slate); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs .is-ask { color: var(--slate); font-weight: 500; }
.swatches { display: inline-flex; gap: 4px; align-items: center; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink-shadow-25); }
.design__price b { font: 800 1.1rem/1 var(--display); font-stretch: 110%; }
.design .btn { margin-top: auto; }
.design--cta { background: var(--ink); color: var(--on-dark); border-color: var(--ink); justify-content: center; }
.design--cta .design__body { padding: 28px; gap: 14px; align-content: center; }
.design--cta p { color: var(--on-dark-muted); }

/* 8. Calculator */
.calc { display: grid; gap: 28px; }
@media (min-width: 940px) { .calc { grid-template-columns: 1.1fr 1fr; grid-template-areas: "intro intro" "form out"; column-gap: 48px; } .calc__intro { grid-area: intro; } .calc__form { grid-area: form; } .calc__out { grid-area: out; align-self: start; position: sticky; top: 96px; } }
.calc__intro { display: grid; gap: 14px; }
.calc__form { display: grid; gap: 20px; min-width: 0; }
.calc__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.calc__x { font: 700 1.4rem/48px var(--display); color: var(--on-dark-muted); }
.calc .field label, .calc legend { color: var(--on-dark); font-weight: 600; font-size: 0.92rem; padding: 0; margin-bottom: 8px; }
.calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.calc .field input, .calc .field select {
  min-height: 52px; background: var(--ink-raised); color: var(--on-dark); border: 1.5px solid var(--ink-line); border-radius: 10px;
  padding: 12px 14px; font-size: 1.1rem;
}
.calc .field input::placeholder { color: var(--placeholder-dark); }
.calc .field input:focus, .calc .field select:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px var(--green-glow-22); }
.calc .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-muted) 50%), linear-gradient(135deg, var(--on-dark-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink-raised); border: 1.5px solid var(--ink-line); color: var(--white); font-weight: 600; transition: background .15s, border-color .15s;
}
.pill input:checked + span { background: var(--green-glow-18); border-color: var(--green-bright); }
.pill input:focus-visible + span { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.calc__out { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); display: grid; gap: 16px; }
.calc__result { margin: 0; display: grid; gap: 0; }
.calc__result > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc__result dt { color: var(--slate); }
.calc__result dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.calc__result small { display: block; color: var(--slate); font-weight: 400; font-size: 0.8rem; }
.calc__big { padding-top: 0 !important; }
.calc__big dd { font: 800 1.4rem/1 var(--display); }
.calc__big b { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); font-weight: 850; font-stretch: 112%; }
.calc__big b.is-empty { font: 400 2rem/1 var(--body); color: var(--line); }
.calc__hint { color: var(--slate); font-size: 0.92rem; }
.calc__note { color: var(--slate); font-size: 0.85rem; }

/* 9. Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding: 20px 24px 20px 0; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); font: 700 0.95rem/1 var(--body); color: var(--green-text); font-variant-numeric: tabular-nums; }
.steps b { font: 700 1.15rem/1.2 var(--display); font-stretch: 112%; }
.steps span { color: var(--slate); font-size: 0.96rem; }

/* 10. Recent work */
.mosaic { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--placeholder); aspect-ratio: 1; }
.mosaic__big { grid-column: 1 / -1; aspect-ratio: 4 / 3 !important; }
@media (min-width: 860px) {
  .mosaic { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; }
  .mosaic__big { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto !important; }
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0; padding: 32px 12px 10px; display: grid; gap: 1px; font-size: 0.82rem;
  background: linear-gradient(transparent, var(--ink-veil-85)); color: var(--on-dark);
}
.mosaic figcaption b { font: 700 0.98rem/1.2 var(--display); font-stretch: 110%; color: var(--white); }
.quote { margin: clamp(32px, 5vw, 56px) 0 0; padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); display: grid; gap: 16px; }
.quote p { font: 600 clamp(1.3rem, 1.1rem + 1vw, 1.9rem)/1.3 var(--display); font-stretch: 105%; color: var(--white); }
.quote footer { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--on-dark-muted); }
.quote footer b { color: var(--white); }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--ochre); }
.stars .off { fill: var(--ink-2); }
.gallery-wrap { margin-top: 32px; display: grid; gap: 20px; justify-items: start; }
#galleryBox { width: 100%; display: grid; gap: 20px; }
.filters { display: flex; gap: 6px; padding: 4px; background: var(--cement); border-radius: 999px; justify-self: start; }
.filter {
  min-height: 44px; font: 600 0.9rem/1 var(--body); color: var(--slate); background: none; border: 0; border-radius: 999px; padding: 10px 16px;
  cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .2s, color .2s;
}
.filter__count { font: 500 0.75rem/1 var(--body); opacity: .75; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--placeholder); text-align: left; color: var(--on-dark);
}
.gallery__btn img, .gallery__btn video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__meta { position: absolute; inset: auto 0 0 0; padding: 32px 12px 10px; display: grid; gap: 2px; background: linear-gradient(transparent, var(--ink-veil-85)); }
.gallery__meta b { font: 700 0.98rem/1.2 var(--display); font-stretch: 110%; }
.gallery__meta small { font: 500 0.8rem/1.2 var(--body); color: var(--on-dark-muted); }
.gallery__play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; translate: -50% -60%; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 6px 24px var(--shadow-dark-30); }
.gallery__play::after { content: ""; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--white); }
.gallery__badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: var(--radius); background: var(--white); color: var(--ink); font: 600 0.76rem/1 var(--body); }
.gallery__empty { color: var(--slate); }
.lightbox { border: 0; padding: 0; background: transparent; color: var(--on-dark); width: min(1100px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.lightbox::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.lightbox__media { background: var(--media-black); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.lightbox__media img, .lightbox__media video { width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; display: block; }
.lightbox__media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.lightbox__media iframe.is-portrait { width: auto; height: min(78dvh, 760px); max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; background: var(--media-black); }
.lightbox__caption { padding-top: 12px; font-weight: 600; }
.lightbox__caption small { font: 500 0.85rem/1 var(--body); color: var(--on-dark-muted); margin-left: 8px; }
.lightbox__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox__link { padding: 48px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.lightbox__link a { color: var(--white); }

/* 11. Why Iman: building from abroad */
.abroad {
  margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 3vw, 28px); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  display: grid; gap: 16px; align-items: center;
}
@media (min-width: 760px) { .abroad { grid-template-columns: 1fr auto; gap: 32px; } }
.abroad > div { display: grid; gap: 8px; }
.abroad p { color: var(--slate); max-width: 60ch; }

/* 12. FAQ */
.faq__list { display: grid; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 0; font: 700 1.08rem/1.3 var(--display); font-stretch: 108%; text-wrap: pretty;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--body); color: var(--green-text); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--slate); max-width: 70ch; }

/* 13. Visit */
.visit { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.visit__info { display: grid; gap: 22px; min-width: 0; }
.info { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--ink); }
.info .ico--wa { color: var(--wa-icon); }
.info div { display: grid; gap: 2px; min-width: 0; }
.info b { font: 600 0.86rem/1.3 var(--body); color: var(--slate); }
.info a, .info span { font-weight: 600; font-size: 1.06rem; overflow-wrap: anywhere; }
.info a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.info a:hover { color: var(--green-text); text-decoration: underline; }
.info__list { display: flex; flex-wrap: wrap; column-gap: 18px; }
@media (max-width: 639px) { .info__list { flex-direction: column; } .info__list a { min-height: 36px; } }
.info__note { font: 500 0.8rem/1 var(--body) !important; color: var(--err); margin-left: 6px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 5; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Enquiry form */
.contact-section { background: var(--paper); border-top: 1px solid var(--line); }
.contact { display: grid; gap: 36px; }
@media (min-width: 940px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.contact__info { display: grid; gap: 16px; align-content: start; min-width: 0; }
.contact__info > p { color: var(--slate); font-size: 1.05rem; }
.form { padding: clamp(20px, 4vw, 34px); border-radius: 16px; display: grid; gap: 18px; min-width: 0; align-content: start; }
.form.form--dark { background: var(--ink); color: var(--on-dark); }
.form__head { display: grid; gap: 6px; }
.form__head h1, .form__head h3 { font-size: var(--step-2); }
.form__head p { color: var(--on-dark-muted); font-size: 0.95rem; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field small { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; }
.form--dark .field label, .form--dark legend { color: var(--on-dark); font-weight: 600; font-size: 0.9rem; }
.form--dark .field small { color: var(--on-dark-muted); }
.form--dark .field input, .form--dark .field textarea { background: var(--ink-raised); color: var(--on-dark); border: 1.5px solid var(--ink-line); }
.form--dark .field input::placeholder, .form--dark .field textarea::placeholder { color: var(--placeholder-form); }
.form--dark .field input:focus, .form--dark .field textarea:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px var(--green-glow-22); }
.form--dark .field [aria-invalid="true"] { border-color: var(--err-bright); box-shadow: 0 0 0 3px var(--err-glow-18); }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: 0.95rem; min-height: 1.5em; }
.form--dark .form__status.is-ok { color: var(--green-bright); font-weight: 600; }
.form--dark .form__status.is-err { color: var(--err-soft); font-weight: 600; }
.chips { border: 0; padding: 0; margin: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  background: var(--ink-raised); border: 1.5px solid var(--ink-line); color: var(--white); font-size: 0.92rem; font-weight: 700;
}
.chip input:checked + span { background: var(--green-glow-18); border-color: var(--green-bright); }
.chip input:checked + span::before { content: ""; width: 10px; height: 6px; border: solid var(--green-bright); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.chip input:focus-visible + span { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.field--area { max-width: 240px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 46px; }
.input-suffix span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--on-dark-muted); font-weight: 500; pointer-events: none; }
.form__or { display: flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font: 500 0.86rem/1 var(--body); }
.form__or::before, .form__or::after { content: ""; flex: 1; height: 1px; background: var(--ink-line); }
.btn--wa { background: transparent; color: var(--on-dark); border: 1.5px solid var(--wa); }
.btn--wa .ico { color: var(--wa); }
.btn--wa:hover { background: var(--wa); border-color: var(--wa); color: var(--ink); }
.btn--wa:hover .ico { color: var(--ink); }
.form__done { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--green-glow-16); border: 1px solid var(--green-bright); color: var(--on-dark); }
.form__done svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--green-bright); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form__done b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.form__done span { color: var(--on-dark-muted); font-size: 0.92rem; }
.form__done:focus { outline: none; }
.form__note { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--on-dark-muted); }

/* Review form (on /review/) */
.rating { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.rating legend { padding: 0; margin-bottom: 8px; }
.rating__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.rating__stars { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rating .rating__stars input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.rating__stars label { cursor: pointer; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-raised); border: 1px solid var(--ink-line); }
.rating__stars svg { width: 26px; height: 26px; fill: none; stroke: var(--on-dark-muted); stroke-width: 1.5; stroke-linejoin: round; }
.rating__stars label:hover svg, .rating__stars label:hover ~ label svg, .rating__stars input:checked ~ label svg { fill: var(--ochre); stroke: var(--ochre); }
.rating__stars input:focus-visible + label { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.rating[aria-invalid="true"] .rating__stars label { border-color: var(--err-bright); }
.rating__hint { font: 600 0.86rem/1 var(--body); color: var(--on-dark-muted); }
.rating__hint.is-set { color: var(--ochre); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; color: var(--on-dark-muted); cursor: pointer; min-height: 44px; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink-line); background: var(--ink-raised); display: grid; place-items: center; cursor: pointer; }
.consent input::after { content: ""; width: 10px; height: 6px; border: solid var(--white); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.consent input:checked { background: var(--green); border-color: var(--green); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent input:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
.consent[aria-invalid="true"] { color: var(--err-soft); }
.page-simple { min-height: 100dvh; display: grid; align-content: start; gap: 24px; padding-block: 32px 64px; }

/* 14. Footer */
.footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 44px 40px; }
.footer__inner { display: grid; gap: 16px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a:hover { text-decoration: underline; }
.brand--footer { color: var(--on-dark); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ink-2); border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.social .ico { width: 18px; height: 18px; }
.footer__small { font-size: 0.86rem; }
.footer__bottom { padding-top: 14px; border-top: 1px solid var(--ink-2); }

/* 15. Phone bar (phones only) and the desktop WhatsApp button */
.phonebar { display: none; }
@media (max-width: 759px) {
  :root { --bar: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .phonebar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px var(--ink-shadow-08);
    transition: transform .3s;
  }
  .bar-off .phonebar { transform: translateY(100%); }
  .phonebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; font-weight: 700; text-decoration: none; }
  .phonebar__call { border: 1px solid var(--line); color: var(--ink); }
  .phonebar__wa { background: var(--green-text); color: var(--white); font-size: 1.05rem; }
  .wa-float { display: none !important; }
}
.wa-float { position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity .3s, transform .3s; }
.bar-off .wa-float { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wa-float__btn { width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px var(--ink-shadow-25); transition: transform .2s; }
.wa-float__btn .ico { width: 30px; height: 30px; }
.wa-float:hover .wa-float__btn { transform: scale(1.07); }
.wa-float__label { background: var(--white); color: var(--ink); font-weight: 600; font-size: 0.9rem; padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 20px var(--ink-shadow-15); }

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

/* Review page */
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.review-top .lang { background: var(--ink-raised); }
.review-top .lang__btn { color: var(--on-dark-muted); }
.review-top .lang__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.review-form { max-width: 680px; width: 100%; }
.review-back { color: var(--on-dark-muted); justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

/* Shape filter: one scrollable row on phones */
@media (max-width: 699px) {
  .section__head--row > .chipbar { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; padding-bottom: 4px; }
  .chipbar .chipbtn { flex: none; }
}

/* Photos always fill their frame exactly (portrait photos must not stretch the box) */
.hero__photo, .design__media, .mosaic figure, .visit__photo, .gallery__btn { position: relative; overflow: hidden; }
.hero__photo > img, .design__media > img, .mosaic figure > img, .visit__photo > img, .gallery__btn > img, .gallery__btn > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.design__thumbs, .hero__price, .hero__job, .mosaic figcaption, .gallery__meta, .gallery__play, .gallery__badge { z-index: 1; }
