/* ===== How it works for business: "For smaller spaces" (not on live; Danny, 2026-10-26). Same look as the residential
   villas module (pages/how-it-works/css/30-villas.css): grey #f5f5f5 section, 20px grey eyebrow, 64px title, 28px intro,
   black 30px-radius cards with a green 28px title and white 20px text, outline pill button. ===== */
.nf-hiwb-small {
  --nf-hiwb-small-reg: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-hiwb-small-med: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  --nf-hiwb-small-tmed: "SFProText-Medium", "SF Pro Text", "Nafas Inter", sans-serif;
  display: flex; flex-direction: column; align-items: flex-start; gap: 50px; width: 100%; padding: 80px 60px;
  background-color: var(--nf-grey-f5, #f5f5f5);
}
.nf-hiwb-small p, .nf-hiwb-small h2, .nf-hiwb-small h3, .nf-hiwb-small ol { margin: 0; padding: 0; }
.nf-hiwb-small ol { list-style: none; }
.nf-hiwb-small__head { display: flex; flex-direction: column; gap: 23px; width: 100%; }
.nf-hiwb-small__eyebrow { font-family: var(--nf-hiwb-small-tmed); font-weight: 500; font-size: 20px; line-height: 1.2; color: rgb(122, 122, 122); }
.nf-hiwb-small__title { font-family: var(--nf-hiwb-small-med); font-weight: 500; font-size: 64px; line-height: 1.2; letter-spacing: -0.01em; color: #000; }
.nf-hiwb-small__text { max-width: 91%; font-family: var(--nf-hiwb-small-reg); font-weight: 400; font-size: 28px; line-height: 1.25; letter-spacing: 0.01em; color: #000; }

/* Cards = option A of explore/villas-cards.html, business (Danny, 2026-10-29), as the residential villas cards
   (30-villas.css): the photo fills the card; number, title and a one-line hook sit on a gradient at the bottom; hover (or
   focus) grows the gradient, hides the hook and slides up the full text; touch screens always show it. Three columns,
   one from 999.98 down. */
.nf-hiwb-small__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; }
.nf-hiwb-small__card {
  position: relative; aspect-ratio: 4 / 4.8; overflow: hidden; border-radius: 30px; clip-path: inset(0 round 30px);
  color: #fff; /* no card background: the photo fills it (a black one showed as a hairline on light rounded corners) */
}
.nf-hiwb-small__media { position: absolute; inset: 0; overflow: hidden; }
.nf-hiwb-small__media picture { display: block; width: 100%; height: 100%; }
.nf-hiwb-small__media img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.nf-hiwb-small__card:hover .nf-hiwb-small__media img { transform: scale(1.04); }
.nf-hiwb-small__shade {
  position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.nf-hiwb-small__card:hover .nf-hiwb-small__shade { height: 80%; }
.nf-hiwb-small__card-body { position: absolute; left: 23px; right: 23px; bottom: 27px; }
.nf-hiwb-small .nf-hiwb-small__num { margin-bottom: 12px; } /* live business card: 12px gaps (beats the section p reset) */
.nf-hiwb-small .nf-hiwb-small__hook { margin-top: 12px; transition: opacity 0.3s; }
.nf-hiwb-small__card:hover .nf-hiwb-small__hook { opacity: 0; height: 0; margin: 0; }
.nf-hiwb-small__more {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.nf-hiwb-small__more > div { overflow: hidden; }
.nf-hiwb-small__card:hover .nf-hiwb-small__more, .nf-hiwb-small__card:focus-within .nf-hiwb-small__more { grid-template-rows: 1fr; opacity: 1; }
.nf-hiwb-small__more .nf-hiwb-small__card-text { padding-top: 12px; max-width: 560px; }
/* Touch screens and phone widths (Danny, 2026-10-29): everything is shown, no hover. */
@media (hover: none), (max-width: 809.98px) {
  .nf-hiwb-small__more { grid-template-rows: 1fr; opacity: 1; }
  .nf-hiwb-small__hook { display: none; }
  .nf-hiwb-small__shade, .nf-hiwb-small__card:hover .nf-hiwb-small__shade { height: 80%; }
  .nf-hiwb-small__card:hover .nf-hiwb-small__media img { transform: none; }
}
@media (max-width: 999.98px) {
  .nf-hiwb-small__cards { grid-template-columns: minmax(0, 1fr); }
  .nf-hiwb-small__card { aspect-ratio: 4 / 3; }
}
.nf-hiwb-small__num { font-family: var(--nf-hiwb-small-tmed); font-weight: 500; font-size: 20px; line-height: 1.2; color: rgb(158, 158, 158); }
.nf-hiwb-small__card-title { font-family: var(--nf-hiwb-small-med); font-weight: 500; font-size: 28px; line-height: 1.25; color: var(--nf-green, #91c851); }
.nf-hiwb-small__card-text { font-family: var(--nf-hiwb-small-reg); font-weight: 400; font-size: 20px; line-height: 1.4; letter-spacing: 0.01em; color: #fff; }

/* Tier 2 on light: black outline and text (the residential "Speak to an expert" button) */
.nf-hiwb-small__cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 40px 16px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px #000; color: #000; text-decoration: none; transition: background-color 0.2s ease-out;
}
.nf-hiwb-small__cta-text { font-family: var(--nf-hiwb-small-med); font-weight: 500; font-size: 22px; line-height: 1.15; }
@media (hover: hover) { .nf-hiwb-small__cta:hover { background-color: #fff; } }
.nf-hiwb-small__cta:focus-visible { outline: 2px solid var(--nf-green, #91c851); outline-offset: 3px; }

.nf-hiwb-small [data-hiwb-small-reveal] { opacity: 0; }
.nf-hiwb-small [data-hiwb-small-reveal].is-in { opacity: 1; transition: opacity 0.44s cubic-bezier(0.3, 0.4, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .nf-hiwb-small [data-hiwb-small-reveal] { opacity: 1; transition: none; } }

@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiwb-small { padding: 60px 40px; }
  .nf-hiwb-small__cta { padding: 12px 32px 14px; }
  .nf-hiwb-small__cta-text { font-size: 18px; }
}
@media (max-width: 809.98px) {
  .nf-hiwb-small { gap: 32px; padding: 32px 16px; }
  .nf-hiwb-small__head { gap: 10px; }
  .nf-hiwb-small__eyebrow { font-size: 18px; }
  .nf-hiwb-small__title { font-size: 24px; line-height: 1.25; letter-spacing: normal; }
  .nf-hiwb-small__text { max-width: none; font-size: 16px; letter-spacing: normal; }
  .nf-hiwb-small__card { aspect-ratio: 4 / 4.6; border-radius: 16px; clip-path: inset(0 round 16px); }
  .nf-hiwb-small__card-body { left: 16px; right: 16px; bottom: 16px; }
  .nf-hiwb-small .nf-hiwb-small__num { margin-bottom: 5px; }
  .nf-hiwb-small .nf-hiwb-small__hook, .nf-hiwb-small__more .nf-hiwb-small__card-text { margin-top: 0; padding-top: 5px; }
  .nf-hiwb-small__num { font-size: 14px; }
  .nf-hiwb-small__card-title { font-family: var(--nf-hiwb-small-reg); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; }
  .nf-hiwb-small__card-text { font-size: 16px; line-height: 1.25; }
  .nf-hiwb-small__cta { align-self: stretch; padding: 10px 16px; box-shadow: inset 0 0 0 1px #000; }
  .nf-hiwb-small__cta-text { font-size: 15px; }
}

/* Same type scale as the residential villas module and the other pages (Danny, 2026-10-26) */
@media (min-width: 810px) {
  .nf-hiwb-small__eyebrow, .nf-hiwb-small__num { font-size: 18px; }
  .nf-hiwb-small__title { font-size: 52px; line-height: 1.15; }
  .nf-hiwb-small__text { font-size: 24px; line-height: 1.3; letter-spacing: normal; }
  .nf-hiwb-small__cta-text { font-size: 21px; }
}
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiwb-small__eyebrow, .nf-hiwb-small__num { font-size: 16px; }
  .nf-hiwb-small__title { font-size: 42px; }
  .nf-hiwb-small__text { font-size: 22px; }
  .nf-hiwb-small__card-title { font-size: 24px; }
  .nf-hiwb-small__card-text { font-size: 18px; }
  .nf-hiwb-small__cta-text { font-size: 18px; }
}

/* Regular 400 like the other How it works titles ("Before you start"), Danny 2026-10-27; sizes unchanged */
.nf-hiwb-small__title { font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400; }
