/* ===== How it works hero (live nafas.com/id-en/how-it-works, frame "Hero" + image block "Living Room Black_Normal 1") =====
   Desktop: one white column, title + subtitle, then the wide living room image (aspect 2.90285, inside the hero).
   Tablet/phone: the hero holds only the text; a full-bleed image block (aspect 1.8203) follows it with no gap.
   Load: both text boxes fade 0 -> 1 (opacity only), 0.432s cubic-bezier(0.3, 0.4, 0.2, 1), see js/10-hero.js. */

/* ---------- Desktop (>= 1280, base) ---------- */
.nf-hiw-hero { display: flex; flex-direction: column; width: 100%; position: relative; background-color: var(--nf-white); }
.nf-hiw-hero__hero {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px;
  width: 100%; padding: 156px 60px 80px; position: relative;
}
.nf-hiw-hero__content {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  width: 100%; position: relative; overflow: clip;
}
.nf-hiw-hero__title-box, .nf-hiw-hero__sub-box { width: 100%; max-width: 100%; position: relative; }
.nf-hiw-hero__title, .nf-hiw-hero__sub {
  margin: 0; font-family: var(--nf-font-regular); font-weight: 400; color: var(--nf-black);
  letter-spacing: normal; text-align: start; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
/* Headline as the residential and business heroes (Danny, 2026-11-06): 72 / 79.2 Medium; phone 34 / 40.8 Regular */
.nf-hiw-hero__title { font-size: 72px; line-height: 1.1em; font-family: var(--nf-font-medium); font-weight: 500; }
.nf-hiw-hero__sub { font-size: 28px; line-height: 1.25em; }

.nf-hiw-hero__img { width: 100%; aspect-ratio: 2.90285 / 1; position: relative; }
.nf-hiw-hero__block { width: 100%; aspect-ratio: 1.8203 / 1; position: relative; }
.nf-hiw-hero__img picture, .nf-hiw-hero__block picture { position: absolute; inset: 0; display: block; }
.nf-hiw-hero__img img, .nf-hiw-hero__block img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* Load fade (live Framer appear: opacity only, no transform) */
.nf-hiw-hero [data-hiw-hero-fade] { opacity: 0; }
.nf-hiw-hero.is-loaded [data-hiw-hero-fade] { opacity: 1; transition: opacity 0.432s cubic-bezier(0.3, 0.4, 0.2, 1); }

/* ---------- Tablet (810 to 1279.98) ---------- */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-hiw-hero__hero { padding: 156px 40px 60px; }
  .nf-hiw-hero__content { gap: 8px; }
}

/* ---------- Phone (<= 809.98) ---------- */
@media (max-width: 809.98px) {
  .nf-hiw-hero__hero { padding: 100px 16px 32px; }
  .nf-hiw-hero__content { gap: 8px; }
  .nf-hiw-hero__title { font-size: 34px; line-height: 1.2em; font-family: var(--nf-font-regular); font-weight: 400; }
  /* Same as the Step 1 text under it ("Choose the setup that fits..."): 16 / 20, 0.16px tracking (Danny, 2026-11-06) */
  .nf-hiw-hero__sub { font-size: 16px; line-height: 20px; letter-spacing: 0.16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-hiw-hero [data-hiw-hero-fade] { opacity: 1; transition: none; }
}
