/* ==========================================================================
   Business hero "Healthy Air is Good for Business" (nafas.com/id-en/business, Framer node framer-1w2znwk)
   Breakpoints (business page): desktop >= 1440, laptop 1280-1439.98, tablet 810-1279.98, phone <= 809.98.
   Measured on live:
   - load: title, subtitle, buttons and score card fade 0 -> 1 together (Framer spring, duration 0.6, bounce 0.1,
     once, 50% in view); the photo, shade and section are static. Live starts after hydration (~0.7 to 2s).
   - buttons (desktop/laptop/tablet variants): hover only. Green #91c851 -> rgb(165,207,118); outline fills
     rgb(245,245,245) and its label turns black at once. Spring duration 0.4, bounce 0.2, both ways.
   - buttons (phone variants): no hover; while pressed green -> rgb(165,207,118), outline -> rgba(255,255,255,0.05)
     with a black label.
   Spring curves: tools/generators/biz-hero/spring_easing.py
   ========================================================================== */

.nf-biz-hero {
  --nf-biz-hero-regular: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif;
  --nf-biz-hero-medium: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", sans-serif;
  --nf-biz-hero-spring-appear: linear(0, 0.0506 4.17%, 0.1641 8.33%, 0.3007 12.5%, 0.4369 16.67%, 0.5605 20.83%, 0.6662 25%, 0.7526 29.17%, 0.821 33.33%, 0.8735 37.5%, 0.9129 41.67%, 0.9418 45.83%, 0.9623 50%, 0.9767 54.17%, 0.9864 58.33%, 0.9928 62.5%, 0.9968 66.67%, 0.9993 70.83%, 1.0006 75%, 1.0013 79.17%, 1.0015 83.33%, 1.0015 87.5%, 1.0013 91.67%, 1.0011 95.83%, 1);
  --nf-biz-hero-spring-btn: linear(0, 0.0794 5%, 0.2486 10%, 0.4375 15%, 0.6093 20%, 0.7484 25%, 0.8518 30%, 0.9231 35%, 0.9688 40%, 0.9954 45%, 1.0091 50%, 1.0144 55%, 1.015 60%, 1.0131 65%, 1.0104 70%, 1.0076 75%, 1.0051 80%, 1.0032 85%, 1.0018 90%, 1.0009 95%, 1);

  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100vh; padding: 0 0 64px;
  overflow: hidden;
}

/* ---------- background photo + 30% black shade ---------- */
.nf-biz-hero__bg { position: absolute; inset: 0; border-radius: inherit; }
.nf-biz-hero__bg picture { display: block; width: 100%; height: 100%; border-radius: inherit; }
.nf-biz-hero__bg img {
  display: block; width: 100%; height: 100%; border-radius: inherit;
  object-fit: cover; object-position: 50% 0%;
}
.nf-biz-hero__shade {
  position: absolute; top: 0; left: 0; z-index: 1; flex: none;
  width: 100%; height: 106%;
  background-color: var(--nf-black); opacity: 0.3; overflow: clip;
}

/* ---------- layout ---------- */
.nf-biz-hero__base {
  position: relative; z-index: 2; flex: none;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1380px; padding: 128px 40px 0;
  overflow: visible;
}
.nf-biz-hero__wrap {
  position: relative; z-index: 1; flex: 1 0 0px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 168px;
  width: 1px; height: 578px; padding: 12px 0 0;
  border-radius: 18px; overflow: visible;
}
.nf-biz-hero__text {
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px;
  width: 100%; padding: 0;
  overflow: clip;
}
.nf-biz-hero__title-box { position: relative; flex: none; width: 100%; max-width: 100%; }
.nf-biz-hero__sub-box { position: relative; flex: none; width: 809px; }
.nf-biz-hero__title {
  font-family: var(--nf-biz-hero-medium); font-weight: 500; font-size: 72px; line-height: 1.1em;
  letter-spacing: normal; color: var(--nf-white); text-align: left;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-biz-hero__sub {
  font-family: var(--nf-biz-hero-regular); font-weight: 400; font-size: 28px; line-height: 1.25em;
  letter-spacing: normal; color: var(--nf-white); text-align: left;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}

/* ---------- buttons ---------- */
.nf-biz-hero__btns {
  position: relative; flex: none;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px;
  width: min-content; padding: 0;
}
.nf-biz-hero__btn {
  position: relative; flex: none;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  width: min-content; height: 54px; padding: 16px 24px;
  border-radius: 32px; cursor: pointer; text-decoration: none; overflow: visible;
  color: rgb(0, 0, 238); /* live <a> keeps the UA link colour (only its currentColor shows, nowhere visible) */
  transition: background-color 0.4s var(--nf-biz-hero-spring-btn);
}
.nf-biz-hero__btn--green { gap: 10px; background-color: var(--nf-green); }
.nf-biz-hero__btn--outline { gap: 4px; background-color: rgba(0, 0, 0, 0); }
.nf-biz-hero__btn--outline::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 0.8px solid var(--nf-white); border-radius: inherit;
}
.nf-biz-hero__btn-label {
  position: relative; flex: none;
  font-family: var(--nf-biz-hero-regular); font-weight: 400; font-size: 21px; line-height: 1.2em;
  letter-spacing: normal; text-align: start; white-space: pre;
  color: var(--nf-black);
}
.nf-biz-hero__btn--outline .nf-biz-hero__btn-label { color: var(--nf-white); }
.nf-biz-hero__btn:focus-visible { outline: 2px solid var(--nf-white); outline-offset: 2px; }

/* ---------- score card image ---------- */
.nf-biz-hero__image {
  position: relative; flex: none;
  width: 419px; height: auto; aspect-ratio: 0.919598 / 1;
  overflow: visible;
}
.nf-biz-hero__image picture { position: absolute; inset: 0; display: block; border-radius: inherit; }
.nf-biz-hero__image img {
  display: block; width: 100%; height: 100%; border-radius: inherit;
  object-fit: cover; object-position: 50% 50%;
}

/* ---------- load fade (JS adds .is-in at >= 50% in view, once) ---------- */
/* Off since 2026-11-19 (Danny): the first screen shows at once, so Google finds the main element. To bring the fade
   back, add the class nf-biz-hero--fade to the section. */
.nf-biz-hero--fade [data-biz-hero-fade] {
  opacity: 0; will-change: transform;
  transition: opacity 0.6s var(--nf-biz-hero-spring-appear);
}
.nf-biz-hero--fade [data-biz-hero-fade].is-in { opacity: 1; }
@media (scripting: none) { .nf-biz-hero--fade [data-biz-hero-fade] { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nf-biz-hero--fade [data-biz-hero-fade] { opacity: 1; transition: none; } }

/* ---------- desktop variants (>= 810): hover ---------- */
@media (hover: hover) and (min-width: 810px) {
  .nf-biz-hero__btn--green:hover { background-color: rgb(165, 207, 118); }
  .nf-biz-hero__btn--outline:hover { background-color: rgb(245, 245, 245); }
  .nf-biz-hero__btn--outline:hover .nf-biz-hero__btn-label { color: var(--nf-black); }
}

/* ========== laptop 1280 - 1439.98 ========== */
@media (min-width: 1280px) and (max-width: 1439.98px) {
  .nf-biz-hero__base { padding: 128px 60px 0; }
  .nf-biz-hero__wrap { gap: 148px; height: 516px; }
  .nf-biz-hero__sub-box { width: 100%; }
}

/* ========== tablet 810 - 1279.98 ========== */
@media (min-width: 810px) and (max-width: 1279.98px) {
  .nf-biz-hero { height: 1131px; }
  .nf-biz-hero__base {
    flex: 1 0 0px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 40px;
    height: 1px; padding: 128px 40px 60px;
  }
  .nf-biz-hero__wrap { flex: none; gap: 24px; width: 100%; height: auto; }
  .nf-biz-hero__sub-box { width: 100%; }
}

/* ========== phone <= 809.98 ========== */
@media (max-width: 809.98px) {
  .nf-biz-hero { height: auto; padding: 128px 16px 40px; }
  .nf-biz-hero__bg img { object-position: 50% 50%; }
  .nf-biz-hero__base { flex-direction: column; justify-content: flex-end; gap: 48px; padding: 0; }
  .nf-biz-hero__wrap { flex: none; gap: 20px; width: 100%; height: auto; }
  .nf-biz-hero__text { gap: 20px; }
  .nf-biz-hero__sub-box { width: 100%; }
  .nf-biz-hero__title { font-family: var(--nf-biz-hero-regular); font-weight: 400; font-size: 38px; line-height: 1.2em; }
  .nf-biz-hero__sub { font-size: 17px; line-height: 1.2em; }
  /* Phone: the two buttons share the full row (left to right margin); they stack only if a very narrow screen can't fit both */
  /* 2px of paint room above and below (cancelled by the negative margin, so nothing moves): the row ends on a fractional
     y with the wrap, and Safari's layer snapping was shaving the buttons' bottom edge and outline */
  .nf-biz-hero__btns { gap: 8px; width: 100%; flex-wrap: wrap; padding: 2px 0; margin: -2px 0; }
  /* 35px tall with no vertical padding (as the residential buttons), so the label sits inside the box instead of overflowing it */
  .nf-biz-hero__btn { flex: 1 1 auto; width: auto; height: 35px; max-height: 35px; padding: 0 16px; }
  .nf-biz-hero__btn--green { gap: 5px; }
  .nf-biz-hero__btn--outline { gap: 4px; }
  .nf-biz-hero__btn-label { font-size: 15px; }
  .nf-biz-hero__image { width: 100%; }
  /* phone variants: pressed state only */
  .nf-biz-hero__btn--green:active { background-color: rgb(165, 207, 118); }
  .nf-biz-hero__btn--outline:active { background-color: rgba(255, 255, 255, 0.05); }
  .nf-biz-hero__btn--outline:active .nf-biz-hero__btn-label { color: var(--nf-black); }
}
