/* Site styles: tokens only (var(--…)); logical properties (inline/block) so right to left needs no second sheet.
   Typed-in colours, fonts, sizes, spacing, radii and shadows fail the no-off-token check (standard §5.1). */
@import url("tokens.css");

/* Arabic pages take the Arabic font stack everywhere. */
:root:lang(ar) { --font-sans: var(--font-arabic); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-8); }
body {
  margin: 0;
  background: var(--color-surface-100);
  color: var(--color-ink);
  font-family: var(--text-body-family);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: var(--text-body-weight);
}
img, svg { max-inline-size: 100%; block-size: auto; display: block; }
a { color: var(--color-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--color-primary-strong); }
:focus-visible { outline: var(--focus-ring) solid var(--color-primary); outline-offset: var(--space-1); }
main:focus { outline: none; }

/* Type */
h1, h2, h3, .hero__title { text-transform: var(--heading-case); letter-spacing: var(--heading-tracking); text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .hero__title { text-transform: none; letter-spacing: normal; }
h1 {
  font-family: var(--text-h1-family); font-size: var(--text-h1-size);
  line-height: var(--text-h1-line); font-weight: var(--text-h1-weight);
  margin-block: 0 var(--space-4);
}
h2 {
  font-family: var(--text-h2-family); font-size: var(--text-h2-size);
  line-height: var(--text-h2-line); font-weight: var(--text-h2-weight);
  margin-block: 0 var(--space-4);
}
h3 {
  font-family: var(--text-h3-family); font-size: var(--text-h3-size);
  line-height: var(--text-h3-line); font-weight: var(--text-h3-weight);
  margin-block: 0 var(--space-2);
}
p { margin-block: 0 var(--space-4); }
.lede { font-size: var(--text-h3-size); line-height: var(--text-h3-line); color: var(--color-ink-muted); }
.muted { color: var(--color-ink-muted); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.prose { max-inline-size: var(--measure); }
.prose > * + h2 { margin-block-start: var(--space-8); }
.prose ul, .prose ol { padding-inline-start: var(--space-6); margin-block: 0 var(--space-4); }

/* Layout */
.container { max-inline-size: var(--container-max); margin-inline: auto; padding-inline: var(--space-4); }
.section { padding-block: var(--section-space); }
.section--tight { padding-block: var(--space-8) var(--space-12); }
.section--alt { background: var(--color-surface-200); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li + li { margin-block-start: var(--space-2); }

/* Skip link */
.skip-link {
  position: absolute; inset-inline-start: var(--space-4); inset-block-start: var(--space-2);
  padding: var(--space-2) var(--space-4); background: var(--color-primary); color: var(--color-on-primary);
  border-radius: var(--radius-md); transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--color-on-primary); }

/* Header and navigation */
.site-header { background: var(--color-surface-100); border-block-end: var(--border-1) solid var(--color-line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-4); }
.brand { color: var(--color-ink); text-decoration: none; font-size: var(--text-h3-size); font-weight: var(--text-h3-weight); line-height: var(--text-h3-line); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.site-nav__list { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--color-ink); text-decoration: none; padding-block: var(--space-2); }
.site-nav__list a[aria-current="page"] { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: var(--border-1); }
.lang-switch { font-weight: var(--text-label-weight); }
.nav-toggle {
  font: inherit; background: var(--color-surface-200); color: var(--color-ink);
  border: var(--border-1) solid var(--color-line-strong); border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4); cursor: pointer;
  display: none; /* shown only on phones, and only when scripts run (js-ready.js) */
}
@media (max-width: 47.99rem) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; inline-size: 100%; flex-direction: column; align-items: stretch; }
  .js .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: var(--space-1); }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-button);
  border: var(--border-1) solid var(--color-primary);
  background: var(--color-primary); color: var(--color-on-primary);
  font: inherit; font-size: var(--text-label-size); font-weight: var(--text-label-weight); line-height: var(--text-label-line);
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--color-primary-strong); border-color: var(--color-primary-strong); color: var(--color-on-primary); }
.button--small { padding: var(--space-2) var(--space-4); }
.button--ghost { background: transparent; color: var(--color-primary); }
.button--ghost:hover { background: var(--color-surface-200); color: var(--color-primary-strong); }
.button--on-primary { background: var(--color-on-primary); color: var(--color-primary); border-color: var(--color-on-primary); }
.button--on-primary:hover { background: var(--color-surface-200); color: var(--color-primary-strong); border-color: var(--color-surface-200); }
.button--ghost-on-primary { color: var(--color-on-primary); border-color: var(--color-on-primary); }
.button--ghost-on-primary:hover { background: var(--color-primary-strong); color: var(--color-on-primary); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.button-col { display: grid; gap: var(--space-3); margin-block-end: var(--space-6); }

/* Hero */
.hero { padding-block: var(--space-12); }
.hero__inner { display: grid; gap: var(--space-8); align-items: center; }
.hero__lede { font-size: var(--text-h3-size); line-height: var(--text-h3-line); color: var(--color-ink-muted); max-inline-size: var(--measure); }
.hero__title {
  font-family: var(--text-display-family); font-size: var(--text-display-size);
  line-height: var(--text-display-line); font-weight: var(--text-display-weight);
  margin-block: 0 var(--space-4);
}
.hero__media { margin: 0; }
.hero__media img { inline-size: 100%; border-radius: var(--radius-card); }
.hero__caption { margin-block-start: var(--space-2); color: var(--color-ink-muted); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.hero--centered .hero__inner { text-align: center; justify-items: center; }
.hero--centered .button-row { justify-content: center; }
/* Overlay: on phones the picture comes first and the text below it; from 48rem the text sits on a panel over the picture. */
.hero--overlay .hero__media { order: -1; }
@media (min-width: 48rem) {
  .hero--overlay { position: relative; }
  .hero--overlay .hero__inner { grid-template-areas: "stack"; }
  .hero--overlay .hero__media, .hero--overlay .hero__text { grid-area: stack; }
  .hero--overlay .hero__text {
    z-index: 1; align-self: end; margin: var(--space-6); padding: var(--space-6);
    background: var(--color-surface-100); border-radius: var(--radius-card); box-shadow: var(--shadow-2);
    max-inline-size: var(--measure);
  }
}
@media (min-width: 48rem) {
  .hero { padding-block: var(--hero-space); }
  .hero--split .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero--editorial .hero__inner { grid-template-columns: 7fr 5fr; align-items: end; }
}
/* Overlay: the picture full width, the text on a panel over it. */
.hero--overlay .hero__media img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
/* Editorial: a large heading, the material shown like artwork with its caption. */
.hero--editorial .hero__media img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Call-to-action band */
.cta-band { padding-block: var(--space-12); }
.cta-band--primary { background: var(--color-primary); color: var(--color-on-primary); }
.cta-band--subtle { background: var(--color-surface-200); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-band__title { margin: 0; font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); }

/* Cards */
.card-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; background: var(--color-surface-100); border: var(--border-1) solid var(--color-line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-1); padding: var(--space-6);
}
.card__title { font-size: var(--text-h3-size); line-height: var(--text-h3-line); }
.card__title a { color: var(--color-ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card:hover { box-shadow: var(--shadow-2); }
.card:focus-within { outline: var(--focus-ring) solid var(--color-primary); outline-offset: var(--space-1); }
.card__title a:focus-visible { outline: none; }
.card > :last-child { margin-block-end: 0; }
.card__more { margin: 0; color: var(--color-primary); font-weight: var(--text-label-weight); }

/* Tags (areas) */
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.tag { display: inline-block; padding: var(--space-2) var(--space-4); border: var(--border-1) solid var(--color-line-strong); border-radius: var(--radius-pill); text-decoration: none; }

/* FAQ */
.faq { max-inline-size: var(--measure); }
.faq__item { border-block-end: var(--border-1) solid var(--color-line); padding-block: var(--space-4); }
.faq__item summary { cursor: pointer; font-weight: var(--text-label-weight); }
.faq__answer { padding-block-start: var(--space-2); }
.faq__answer p { margin: 0; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: var(--space-4) 0 0; font-size: var(--text-small-size); line-height: var(--text-small-line); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: var(--space-2); color: var(--color-ink-muted); }
.breadcrumbs [aria-current] { color: var(--color-ink-muted); }

/* Forms */
.form { display: grid; gap: var(--space-4); }
.form__title { margin: 0; }
.form > .button { justify-self: start; }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: var(--text-label-weight); }
.field__hint { font-weight: var(--text-body-weight); color: var(--color-ink-muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--color-ink); background: var(--color-surface-100);
  border: var(--border-1) solid var(--color-line-strong); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); inline-size: 100%;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--color-error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-2); }
.field--check label { font-weight: var(--text-body-weight); }
.field--check input { inline-size: auto; margin-block-start: var(--space-1); }

/* Contact page */
.contact-grid { display: grid; gap: var(--space-8); }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.details-list { display: grid; gap: var(--space-1); margin: 0; }
.details-list dt { font-weight: var(--text-label-weight); }
.details-list dd { margin: 0 0 var(--space-3); }

/* Footer */
.site-footer { background: var(--color-surface-200); padding-block: var(--space-12) var(--space-6); margin-block-start: var(--space-12); }
.cta-band + .site-footer, main:has(> .cta-band:last-child) + .site-footer { margin-block-start: 0; }
.site-footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 2fr 2fr 1fr; } .site-footer__grid:has(> nav + nav) { grid-template-columns: 2fr 2fr 1fr 1fr; } }
.site-footer__brand { font-size: var(--text-h3-size); font-weight: var(--text-h3-weight); line-height: var(--text-h3-line); }
.site-footer__heading { font-weight: var(--text-label-weight); }
.site-footer__base { margin-block-start: var(--space-8); }
.site-footer__base > p { margin: 0; border-block-start: var(--border-1) solid var(--color-line); padding-block-start: var(--space-4); }

/* WhatsApp button, always within reach on phones */
.whatsapp-float {
  position: fixed; inset-inline-end: var(--space-4); inset-block-end: var(--space-4); z-index: 10;
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill);
  background: var(--color-primary); color: var(--color-on-primary); box-shadow: var(--shadow-2);
  text-decoration: none; font-weight: var(--text-label-weight);
}
.whatsapp-float:hover { background: var(--color-primary-strong); color: var(--color-on-primary); }
@media (max-width: 29.99rem) { .whatsapp-float__text { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden; white-space: nowrap; } }

/* Browser surfaces (decision T1, from Impeccable's craft floor): the parts the browser draws, themed from the brand. */
::selection { background: var(--color-primary); color: var(--color-on-primary); }
input, textarea { caret-color: var(--color-primary); }
input[type="checkbox"] { accent-color: var(--color-primary); }

/* Statements, not a row of same-size cards (decision T1, Impeccable). */
.statements { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.statements li { border-block-start: var(--border-1) solid var(--color-line-strong); padding-block-start: var(--space-4); }
.statements h3 { font-size: var(--text-h2-size); line-height: var(--text-h2-line); }
.statements p { margin: 0; color: var(--color-ink-muted); max-inline-size: var(--measure); }
@media (min-width: 48rem) { .statements { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); } }

/* Motion (decision T1, Emil Kowalski's rules; timings from design/motion.json, decision T2).
   Colour changes for everyone; movement only where the visitor has not asked for reduced motion,
   and hover movement only with a mouse. */
.button, .tag, .card {
  transition: background-color var(--duration-ui) var(--ease-hover), border-color var(--duration-ui) var(--ease-hover),
              color var(--duration-ui) var(--ease-hover), box-shadow var(--duration-ui) var(--ease-hover);
}
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color var(--duration-ui) var(--ease-hover), border-color var(--duration-ui) var(--ease-hover),
                color var(--duration-ui) var(--ease-hover), transform var(--duration-press) var(--ease-out);
  }
  .button:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) {
    .card { transition: box-shadow var(--duration-ui) var(--ease-hover), transform var(--duration-ui) var(--ease-out); }
    .card:hover { transform: translateY(calc(var(--space-1) * -0.5)); }
  }
}
/* An FAQ answer or the phone menu appearing: a fade for everyone, a small rise where motion is welcome. */
.faq__answer, .js .site-nav.is-open { transition: opacity var(--duration-ui) var(--ease-out), translate var(--duration-ui) var(--ease-out); }
@starting-style {
  .faq__item[open] .faq__answer, .js .site-nav.is-open { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @starting-style {
    .faq__item[open] .faq__answer, .js .site-nav.is-open { translate: 0 calc(var(--space-1) * -1); }
  }
}

/* Style choices (design/style.json, decision PR1): the same blocks, a different structure per style. */
.top-band { background: var(--color-band); color: var(--color-on-band); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.top-band__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding-block: var(--space-2); }
.top-band a { color: var(--color-on-band); }
.top-band__list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; margin: 0; padding: 0; }
.top-band__hours { margin: 0; }
@media (max-width: 47.99rem) { .top-band__hours { display: none; } }

[data-footer="dark"] .site-footer { background: var(--color-band); color: var(--color-on-band); }
[data-footer="dark"] .site-footer a { color: var(--color-on-band); }
[data-footer="dark"] .site-footer .muted { color: var(--color-on-band-muted); }
[data-footer="dark"] .site-footer__base > p { border-color: var(--color-on-band-muted); }

[data-cards="outline"] .card { box-shadow: none; }
[data-cards="outline"] .card:hover { box-shadow: none; border-color: var(--color-primary); }
[data-cards="tile"] .card { background: var(--color-surface-200); border-color: var(--color-surface-200); box-shadow: none; padding: var(--space-8); }
[data-cards="tile"] .section--alt .card { background: var(--color-surface-100); border-color: var(--color-surface-100); }
[data-cards="tile"] .card:hover { box-shadow: var(--shadow-2); }

/* Stones (category: trading). */
.stone-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; margin: 0; padding: 0; }
.stone-card { padding: 0; overflow: hidden; }
.stone-card > :not(img) { margin-inline: var(--space-6); }
.stone-card > :last-child { margin-block-end: var(--space-6); }
.stone-card__img { inline-size: 100%; aspect-ratio: 16 / 11; object-fit: cover; margin-block-end: var(--space-4); }
.stone-card__facts { margin-block-end: var(--space-1); color: var(--color-ink); font-weight: var(--text-label-weight); }
[data-cards="tile"] .stone-card { padding: 0; }
.spec-list { display: grid; gap: 0; margin: 0 0 var(--space-6); border-block-start: var(--border-1) solid var(--color-line); }
.spec-list > div { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-4); padding-block: var(--space-3); border-block-end: var(--border-1) solid var(--color-line); }
.spec-list dt { font-weight: var(--text-label-weight); }
.spec-list dd { margin: 0; }
.gallery-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.gallery-grid figcaption { margin-block-start: var(--space-3); }
.gallery-grid figcaption strong { display: block; }

/* ---- Decision SR5: each style arranges its home page its own way (design/style.json: hero, stones, projects). ---- */

/* Hero "feature" (Stone): the picture larger than the text. */
@media (min-width: 48rem) {
  .hero--feature .hero__inner { grid-template-columns: 5fr 7fr; }
}
.hero--feature .hero__media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Hero "full" (Noir): the picture edge to edge, the heading on it over a fade to the page colour. */
.hero--full { padding-block: 0; }
.hero--full .hero__inner { max-inline-size: none; padding-inline: 0; gap: 0; }
.hero--full .hero__media img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.hero--full .hero__text { padding: var(--space-8) var(--space-4) var(--space-12); }
.hero--full .hero__media { order: -1; position: relative; }
@media (min-width: 48rem) {
  .hero--full .hero__inner { grid-template-areas: "stack"; }
  .hero--full .hero__media, .hero--full .hero__text { grid-area: stack; }
  .hero--full .hero__media img { aspect-ratio: 16 / 7; }
  .hero--full .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--color-surface-100), transparent 70%), linear-gradient(to right, var(--color-surface-100), transparent 70%);
  }
  [dir="rtl"] .hero--full .hero__media::after {
    background: linear-gradient(to top, var(--color-surface-100), transparent 70%), linear-gradient(to left, var(--color-surface-100), transparent 70%);
  }
  .hero--full .hero__text {
    z-index: 1; align-self: end; inline-size: 100%; max-inline-size: var(--container-max);
    margin-inline: auto; padding: var(--space-12) var(--space-4);
  }
  .hero--full .hero__title { max-inline-size: var(--measure); }
}

/* Hero "wide" (Gallery): the heading across the page, then one stone shown full width with its caption. */
.hero--wide .hero__inner { grid-template-columns: 1fr; gap: var(--space-8); }
.hero--wide .hero__media img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
@media (min-width: 48rem) {
  .hero--wide .hero__text { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-4) var(--space-12); align-items: end; }
  .hero--wide .hero__title { grid-row: 1 / span 2; margin: 0; }
  .hero--wide .hero__lede { margin: 0; }
  .hero--wide .hero__media img { aspect-ratio: 21 / 9; }
}

/* A section's heading with its short line, and a link under the section. */
.section-head { margin-block-end: var(--space-8); }
.section-head h2 { margin-block-end: var(--space-2); }
.section-head .lede { margin: 0; }
.section-more { margin: var(--space-8) 0 0; }

/* Stone grid (decision SR7): two to a row on phones, three from 56rem, so six stones never leave a gap. */
.stone-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 56rem) { .stone-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
@media (max-width: 47.99rem) {
  .stone-card > :not(img) { margin-inline: var(--space-3); }
  .stone-card > :last-child { margin-block-end: var(--space-4); }
  .stone-card .card__title { font-size: var(--text-body-size); line-height: var(--text-body-line); }
}

/* Stone tiles (Noir): the picture is the tile, the name sits on it. */
.stone-tiles { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 56rem) { .stone-tiles { grid-template-columns: repeat(3, 1fr); } }
.stone-tile { position: relative; overflow: hidden; background: var(--color-surface-200); }
.stone-tile img { inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stone-tile__label {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: var(--space-12) var(--space-4) var(--space-4);
  background: linear-gradient(to top, var(--color-surface-100), transparent);
}
.stone-tile__label p { margin: 0; color: var(--color-ink-muted); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.stone-tile__title { margin: 0; font-size: var(--text-h3-size); line-height: var(--text-h3-line); }
.stone-tile__title a { color: var(--color-ink); text-decoration: none; }
.stone-tile__title a::after { content: ""; position: absolute; inset: 0; }
.stone-tile:focus-within { outline: var(--focus-ring) solid var(--color-primary); outline-offset: var(--space-1); }
.stone-tile__title a:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .stone-tile img { transition: transform var(--duration-ui) var(--ease-out); }
  .stone-tile:hover img { transform: scale(1.03); }
}

/* Stones as artwork (Gallery): large pictures, two to a row, each with a museum label. */
.stone-feature { display: grid; gap: var(--space-12) var(--space-8); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) {
  .stone-feature { grid-template-columns: repeat(2, 1fr); }
  .stone-feature > li:nth-child(even) { margin-block-start: var(--space-16); }
}
.stone-feature__item { margin: 0; }
.stone-feature__item img { inline-size: 100%; aspect-ratio: 1; object-fit: cover; }
.stone-feature__item figcaption { margin-block-start: var(--space-4); border-block-start: var(--border-1) solid var(--color-line-strong); padding-block-start: var(--space-3); }
.stone-feature__title { margin: 0 0 var(--space-1); font-family: var(--text-h2-family); font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); }
.stone-feature__title a { color: var(--color-ink); text-decoration: none; }
.stone-feature__title a:hover { text-decoration: underline; }

/* Stones as a specification table (Corporate). */
.table-wrap { overflow-x: auto; border: var(--border-1) solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface-100); }
.table-wrap:focus-visible { outline: var(--focus-ring) solid var(--color-primary); }
.stone-table { inline-size: 100%; border-collapse: collapse; }
.stone-table th, .stone-table td { text-align: start; padding: var(--space-3) var(--space-4); border-block-end: var(--border-1) solid var(--color-line); vertical-align: middle; }
.stone-table thead th { background: var(--color-surface-200); font-weight: var(--text-label-weight); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.stone-table tbody tr:last-child > * { border-block-end: 0; }
.stone-table tbody th { font-weight: var(--text-label-weight); }
.stone-table__name { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-ink); text-decoration: none; }
.stone-table__name:hover span { text-decoration: underline; }
.stone-table__name img { inline-size: var(--space-16); aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
.stone-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Projects (decisions SR5, SR6). */
.projects { display: grid; gap: var(--space-6); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.projects figure { margin: 0; }
.projects img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.projects figcaption { margin-block-start: var(--space-3); }
.projects__title { display: block; font-weight: var(--text-label-weight); }
@media (min-width: 40rem) {
  .projects--grid, .projects--gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 56rem) {
  .projects--row { grid-template-columns: repeat(3, 1fr); }
  .projects--feature { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .projects--feature > li:first-child { grid-column: 1 / -1; }
  .projects--feature > li:first-child img { aspect-ratio: 21 / 9; }
  .projects--mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .projects--mosaic > li:first-child { grid-row: 1 / span 2; }
  .projects--mosaic > li:first-child figure, .projects--mosaic > li:first-child img { block-size: 100%; }
  .projects--mosaic > li:first-child figure { display: flex; flex-direction: column; }
  .projects--mosaic > li:first-child img { flex: 1; aspect-ratio: auto; min-block-size: 0; }
}
.projects--gallery { gap: var(--space-2); }
.projects--gallery img { border-radius: 0; aspect-ratio: 3 / 2; }
.projects--gallery figcaption { padding-inline: var(--space-2); }
.projects--feature img { border-radius: 0; }

/* Brand (decision SR8): a simple demo logo, a monogram and the name in the style's own display type.
   A client's real logo (an <img>) replaces both. */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--text-display-family); }
.brand__mark {
  display: inline-grid; place-items: center; inline-size: var(--space-12); aspect-ratio: 1;
  background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-sm);
  font-size: var(--text-label-size); line-height: var(--text-label-line); font-weight: var(--text-h1-weight); letter-spacing: var(--heading-tracking);
}
[data-footer="dark"] .site-footer .brand__mark { background: var(--color-on-band); color: var(--color-band); }

/* Decision SR9: in the showroom the form is switched off and says so. */
.form-demo-note { margin: 0; padding: var(--space-3) var(--space-4); border-inline-start: var(--focus-ring) solid var(--color-primary); background: var(--color-surface-200); }
.form .button[disabled] { opacity: 0.55; cursor: not-allowed; }
/* On phones the stone table keeps its three main columns and fits the screen; the finishes are on each stone's page. */
@media (max-width: 39.99rem) {
  .stone-table th:nth-child(4), .stone-table td:nth-child(4) { display: none; }
  .stone-table th, .stone-table td { padding: var(--space-2); white-space: normal; }
  .stone-table__name { gap: var(--space-2); }
  .stone-table__name img { inline-size: var(--space-12); }
}

/* Decision ST4 (3 Dec 2026): layouts per style for the hero, people and articles. */
/* Hero "stacked" (Warm): the words centred, the photo wide below them with the style's round corners. */
.hero--stacked .hero__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--space-8); }
.hero--stacked .hero__text { max-inline-size: var(--measure); }
.hero--stacked .button-row { justify-content: center; }
.hero--stacked .hero__media { inline-size: 100%; }
.hero--stacked .hero__media img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 48rem) { .hero--stacked .hero__media img { aspect-ratio: 21 / 9; } }

/* People as a list (Noir, Gallery): no boxes, a rule above each person, the name in the heading face. */
.people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.people-list li { border-block-start: var(--border-1) solid var(--color-line-strong); padding-block-start: var(--space-4); }
.people-list__name { font-family: var(--text-h2-family); font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); margin: 0 0 var(--space-1); }
.people-list__role { margin: 0 0 var(--space-2); color: var(--color-primary); font-weight: var(--text-label-weight); }
.people-list p:last-child { margin-block-end: 0; }
@media (min-width: 48rem) { .people-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-12); } }

/* Articles as a list (Noir, Gallery): one under another, a rule between, the title large. */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-block-start: var(--border-1) solid var(--color-line-strong); padding-block: var(--space-6); position: relative; }
.article-list li:last-child { border-block-end: var(--border-1) solid var(--color-line-strong); }
.article-list__title { font-family: var(--text-h2-family); font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); margin: 0 0 var(--space-2); max-inline-size: var(--measure); }
.article-list__title a { color: var(--color-ink); text-decoration: none; }
.article-list__title a::after { content: ""; position: absolute; inset: 0; }
.article-list li:hover .article-list__title a { text-decoration: underline; }
.article-list p { margin: 0; color: var(--color-ink-muted); max-inline-size: var(--measure); }
/* Four items (a services list) fill one row of four rather than three and a lone one. */
@media (min-width: 56rem) {
  .stone-grid:has(> li:nth-child(4):last-child), .stone-tiles:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
}

/* The booking bar (site.bookBar): phones only, on the page's bottom edge; the WhatsApp button moves into it. */
.book-bar { display: none; }
@media (max-width: 47.99rem) {
  .has-book-bar .whatsapp-float { display: none; }
  .has-book-bar { padding-block-end: var(--space-16); }
  .book-bar {
    display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2);
    position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 10;
    padding: var(--space-2) var(--space-4); background: var(--color-surface-100);
    border-block-start: var(--border-1) solid var(--color-line); box-shadow: var(--shadow-2);
  }
  .book-bar .button { justify-content: center; text-align: center; }
}

/* A price menu (decision: Lumeira demo, 3 Dec 2026): treatments grouped by category, each with its time and price as text,
   never a PDF. "list": name, time and price on one line with a dotted leader; "table": one ruled table per category;
   "cards": one card per category. */
.menu { display: grid; gap: var(--space-12); }
.menu__group h3 { font-family: var(--text-h2-family); font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-weight: var(--text-h2-weight); margin: 0 0 var(--space-2); }
.menu__note { margin: 0 0 var(--space-4); color: var(--color-ink-muted); max-inline-size: var(--measure); }
.menu__items { list-style: none; margin: 0; padding: 0; }
.menu__item { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding-block: var(--space-3); border-block-end: var(--border-1) solid var(--color-line); }
.menu__name { font-weight: var(--text-label-weight); }
.menu__name a { color: var(--color-ink); }
.menu__price { font-weight: var(--text-label-weight); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }
.menu__desc, .menu__time { grid-column: 1; margin: 0; color: var(--color-ink-muted); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.menu--list .menu__item { grid-template-columns: auto 1fr auto; align-items: baseline; border-block-end: 0; padding-block: var(--space-2); }
.menu--list .menu__item::before { content: ""; grid-column: 2; grid-row: 1; border-block-end: var(--border-1) dotted var(--color-line-strong); transform: translateY(-0.3em); }
.menu--list .menu__name { grid-column: 1; grid-row: 1; }
.menu--list .menu__price { grid-column: 3; grid-row: 1; }
.menu--list .menu__desc, .menu--list .menu__time { grid-column: 1 / -1; }
.menu--cards .menu__group { background: var(--color-surface-100); border: var(--border-1) solid var(--color-line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); padding: var(--space-6); }
.menu--cards .menu__item:last-child { border-block-end: 0; }
@media (min-width: 56rem) {
  .menu--list, .menu--cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-12) var(--space-16); }
  .menu--cards { gap: var(--space-6); }
}

/* Packages and the visit block (Lumeira demo, 3 Dec 2026). */
.packages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.packages__item { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--color-surface-100); border: var(--border-1) solid var(--color-line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.packages__name { margin: 0; font-size: var(--text-h3-size); line-height: var(--text-h3-line); }
.packages__price { margin: 0; font-size: var(--text-h2-size); line-height: var(--text-h2-line); font-family: var(--text-h2-family); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.packages__includes { margin: 0; padding-inline-start: var(--space-6); }
.packages__time { margin: auto 0 0; color: var(--color-ink-muted); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.visit { display: grid; gap: var(--space-8); }
.visit__facts { margin: 0; display: grid; gap: var(--space-4) var(--space-8); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.visit__facts dt { font-weight: var(--text-label-weight); }
.visit__facts dd { margin: var(--space-1) 0 0; color: var(--color-ink-muted); }
@media (min-width: 56rem) { .visit { grid-template-columns: 2fr 1fr; align-items: start; } }
/* Menu tables line up from one category to the next; five cards sit three and two, never four and one. */
.menu--table .stone-table { table-layout: fixed; inline-size: 100%; }
.menu--table .stone-table th:first-child { inline-size: 50%; }
@media (min-width: 56rem) {
  .card-grid:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* Reviews (Lumeira demo; decision RV1 for sample reviews in Gigfox's own demos). */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.review { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--color-surface-100); border: var(--border-1) solid var(--color-line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); }
.review__stars { margin: 0; display: flex; gap: var(--space-1); color: var(--color-accent); }
.review__star { fill: currentColor; }
.review__star--off { fill: none; stroke: currentColor; stroke-width: 1.2; }
.review__text { margin: 0; }
.review__text p { margin: 0; }
.review__by { margin: auto 0 0; font-weight: var(--text-label-weight); font-size: var(--text-small-size); line-height: var(--text-small-line); }
.review__sample { display: inline-block; margin-inline-start: var(--space-2); padding: 0 var(--space-2); border: var(--border-1) solid var(--color-line-strong); border-radius: var(--radius-pill); font-weight: var(--text-body-weight); color: var(--color-ink-muted); }

/* Screen-reader-only text. */
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The Google Ads question (decisions MO2d, MO2e): on the landing and thank-you pages, shown by ads.js only when site.ads.id is set. */
.ads-consent {
  position: fixed; inset-inline: var(--space-4); inset-block-end: var(--space-4); z-index: 50; margin-inline: auto;
  max-inline-size: var(--measure); display: grid; gap: var(--space-3); padding: var(--space-4);
  background: var(--color-surface-100); color: var(--color-ink); border: var(--border-1) solid var(--color-line-strong);
  border-radius: var(--radius-card); box-shadow: var(--shadow-2);
}
.ads-consent[hidden] { display: none; }
.ads-consent p { margin: 0; }
