/* Sections added from the site admin, and the design choices made there.
   Same fonts and colours as the rest of the site (ALMONI for headings, Assistant for text).
   The style presets override the page builder's own rules, hence !important on them. */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@300;400;600&display=swap');

.nm-block {
  --nm-ink: #35271f;
  --nm-text: #000;
  box-sizing: border-box;
  width: 100%;
  max-width: 1222px;
  margin: 0 auto;
  padding: 40px 15px;
  direction: rtl;
  text-align: right;
  font-family: 'Assistant', sans-serif;
}
.nm-block *, .nm-block *::before, .nm-block *::after { box-sizing: border-box; }

.nm-h {
  margin: 0 0 14px;
  font-family: 'ALMONI', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
  color: var(--nm-ink);
  text-wrap: balance;
}
.nm-p {
  margin: 0;
  max-width: 68ch;
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--nm-text);
}
.nm-text .nm-p { margin-inline-start: 0; }

.nm-fig { margin: 0; }
.nm-fig img, .nm-gitem img { display: block; width: 100%; height: auto; }

.nm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nm-split-text { min-width: 0; }

.nm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; }
.nm-gitem { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.nm-gitem img { height: 100%; object-fit: cover; }

.nm-btnrow { padding-top: 24px; padding-bottom: 24px; }
.nm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  background: var(--nm-ink); color: #f7f7f4; font-family: 'ALMONI', sans-serif; font-size: 20px; text-decoration: none;
  transition: background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .nm-btn:hover { background: #4a3a30; } }

.nm-q {
  margin: 0; padding: 0; max-width: 34ch; font-family: 'ALMONI', sans-serif; font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25; color: var(--nm-ink); text-wrap: balance;
}

.nm-ratio { position: relative; aspect-ratio: 16 / 9; background: #f0efec; }
.nm-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.nm-space { padding: 0; height: 64px; }

@media (max-width: 767px) {
  .nm-block { padding: 28px 15px; }
  .nm-split { grid-template-columns: 1fr; gap: 20px; }
  .nm-grid { grid-template-columns: 1fr; gap: 20px; }
  .nm-space { height: 40px; }
}

/* ---- design choices made in the admin ---- */
.nm-size-s, .nm-size-s * { font-size: 14px !important; line-height: 1.55 !important; }
.nm-size-m, .nm-size-m * { font-size: 17px !important; line-height: 1.55 !important; }
.nm-size-l, .nm-size-l * { font-size: clamp(22px, 2.1vw, 30px) !important; line-height: 1.2 !important; }
.nm-size-xl, .nm-size-xl * { font-size: clamp(30px, 3.4vw, 48px) !important; line-height: 1.05 !important; }

.nm-color-espresso, .nm-color-espresso * { color: #35271f !important; }
.nm-color-black, .nm-color-black * { color: #000 !important; }
.nm-color-grey, .nm-color-grey * { color: #69655c !important; }
.nm-color-white, .nm-color-white * { color: #fff !important; }

.nm-align-r { text-align: right !important; }
.nm-align-c { text-align: center !important; }
.nm-align-l { text-align: left !important; }
.nm-align-c.nm-btnrow, .nm-align-c > .nm-p, .nm-align-c > .nm-q { margin-inline: auto; }

.nm-bg-white { background-color: #fff !important; }
.nm-bg-cream { background-color: #f7f7f4 !important; }
.nm-bg-stone { background-color: #f0efec !important; }
.nm-bg-sand { background-color: #c3bbac !important; }
.nm-bg-espresso { background-color: #35271f !important; }
.nm-bg-espresso, .nm-bg-espresso :is(h1, h2, h3, h4, h5, h6, p, li, span, a, blockquote) { color: #f7f7f4 !important; }

.nm-pt-0 { padding-top: 0 !important; }
.nm-pt-s { padding-top: 16px !important; }
.nm-pt-m { padding-top: 48px !important; }
.nm-pt-l { padding-top: 96px !important; }
.nm-pb-0 { padding-bottom: 0 !important; }
.nm-pb-s { padding-bottom: 16px !important; }
.nm-pb-m { padding-bottom: 48px !important; }
.nm-pb-l { padding-bottom: 96px !important; }
@media (max-width: 767px) {
  .nm-pt-m { padding-top: 32px !important; }
  .nm-pt-l { padding-top: 56px !important; }
  .nm-pb-m { padding-bottom: 32px !important; }
  .nm-pb-l { padding-bottom: 56px !important; }
}

.nm-round-on, .nm-round-on img { border-radius: 14px !important; overflow: hidden; }

@media (max-width: 767px) { .nm-show-desktop { display: none !important; } }
@media (min-width: 768px) { .nm-show-phone { display: none !important; } }

/* project cards laid out from the admin: every card a third of the row and a square picture,
   whichever row it came from (the last row of the original page used narrower cards) */
@media (min-width: 768px) { .elementor-element.nm-pcard { --width: calc(33.333% - 40px) !important; } } /* its 20px margins on each side included, so a card on its own is as wide as one in a full row */
.nm-pcard img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* featured projects, after the home page's slider (chosen with a star in the admin) */
.nm-block.nm-featured { max-width: none; padding: 88px 20px 96px; background: #f7f7f4; }
.nm-featured > * { max-width: 1182px; margin-inline: auto; }
.nm-featured-title {
  margin: 0 auto 44px; font-family: 'ALMONI', sans-serif; font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1;
  color: var(--nm-ink); text-align: center;
}
.nm-featured-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.nm-featured-grid.nm-featured-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.nm-featured-grid.nm-featured-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.nm-featured-grid a { display: block; color: var(--nm-ink); text-decoration: none; }
.nm-featured-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity 200ms ease; }
.nm-featured-grid span { display: block; margin-top: 14px; font-family: 'ALMONI', sans-serif; font-size: 17px; text-align: end; }
@media (hover: hover) and (pointer: fine) { .nm-featured-grid a:hover img { opacity: 0.8; } }
.nm-featured-more { margin: 48px auto 0; text-align: center; font-family: 'Assistant', sans-serif; font-size: 17px; }
.nm-featured-more a { color: var(--nm-ink); text-underline-offset: 5px; }
@media (max-width: 767px) {
  .nm-block.nm-featured { padding: 56px 16px 64px; }
  .nm-featured-title { margin-bottom: 28px; }
  .nm-featured-grid, .nm-featured-grid.nm-featured-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .nm-featured-grid span { margin-top: 8px; font-size: 14px; }
  .nm-featured-more { margin-top: 32px; }
}
/* the slider is set to stay on screen while the page scrolls; with featured projects under it, it
   scrolls away like the rest of the page (inside its own full-screen box) so they can be seen */
body:has(.nm-featured) sr7-module.sr7-top-fixed { position: absolute !important; inset: 0 auto auto 0 !important; }
/* the site's header belongs to the slider: with featured projects under it, it scrolls away with it
   (white on a light section it would be lost) */
body:has(.nm-featured) .elementor-sticky--active { position: absolute !important; }
