/* ==========================================================================
   Residential / Foundation: "Healthy air isn't just about comfort, it's a foundation of health."
   Live: framer-ibJ7x component in .framer-z1kv14-container (desktop) / .framer-zqroo5-container (tablet)
   / .framer-shqknw-container (phone). Values copied from the Framer CSS and checked against live boxes.
   Cards: one flex-wrap grid; Framer's row grouping is reproduced with `order` per breakpoint.
   ========================================================================== */

.nf-res-foundation {
  /* Framer in-view fade (opacity only, plays once): spring stiffness ~200, damping ~25 sampled per frame
     on live; reaches 1 after ~0.45s (overshoot is clamped by opacity) */
  --nf-res-foundation-fade-ease: linear(0, 0.024, 0.0835, 0.1635, 0.2535, 0.346, 0.4359, 0.5201, 0.5969, 0.6652, 0.7251, 0.7766, 0.8204, 0.8572, 0.8877, 0.9127, 0.9331, 0.9494, 0.9624, 0.9726, 0.9805, 0.9865, 0.9911, 0.9945, 0.997, 0.9987, 0.9999, 1, 1);

  position: relative; display: block; width: 100%;
}
/* the Framer component frame (framer-5bfq2r) */
.nf-res-foundation__inner {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 32px;
  width: 100%; padding: 100px 80px; overflow: clip;
  background-color: rgb(31, 29, 32);
}

.nf-res-foundation__head {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 56px;
  width: 100%; max-width: 1440px; overflow: clip;
}
.nf-res-foundation__head > .nf-res-foundation__fade { width: 100%; }
.nf-res-foundation__title {
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
  font-family: var(--nf-font-sfns-text); font-size: 52px; font-weight: 400; line-height: 62.4px; color: var(--nf-white);
  /* regular weight, the same font as "Real Stories from Clean Air Zone Members." (Danny 2026-10-27; live: Medium 500),
     and its 1.2 line height (Nathan 2026-11-12; was 1.1) */
}

.nf-res-foundation__grid {
  position: relative; display: flex; flex-flow: row wrap; justify-content: center; align-items: stretch; gap: 20px;
  width: 100%; max-width: 1440px;
}

.nf-res-foundation__card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 20px;
  flex: 0 0 calc((100% - 40px) / 3); min-width: 0;
  padding: 32px 40px; border-radius: 20px; overflow: clip;
  background-color: var(--nf-white);
}
.nf-res-foundation__main {
  position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 20px;
  flex: 1 0 auto; width: 100%;
}
.nf-res-foundation__icon { position: relative; flex: 0 0 auto; width: 40px; height: 40px; image-rendering: pixelated; }
.nf-res-foundation__icon svg { width: 100%; height: 100%; }
.nf-res-foundation__text {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px;
  flex: 1 0 0px; min-width: 0;
}
.nf-res-foundation__text > .nf-res-foundation__fade { width: 100%; }
.nf-res-foundation__foot {
  position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px;
  width: 100%; padding: 0 0 0 60px;
}
.nf-res-foundation__foot > .nf-res-foundation__fade { flex: 1 0 0px; min-width: 0; }

.nf-res-foundation__name, .nf-res-foundation__body, .nf-res-foundation__src {
  white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
  font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
}
.nf-res-foundation__name {
  font-family: var(--nf-font-medium); font-size: 32px; font-weight: 500; line-height: 40px; letter-spacing: -0.02em; color: var(--nf-black);
}
.nf-res-foundation__body {
  font-family: var(--nf-font-regular); font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: 0.02em; color: var(--nf-grey-61);
}
.nf-res-foundation__src {
  font-family: var(--nf-font-regular); font-size: 16px; font-weight: 400; line-height: 20px; color: var(--nf-grey-61);
}

/* in-view fade (JS adds .is-js to the section, .is-in to each box once it is at least half visible) */
.nf-res-foundation.is-js .nf-res-foundation__fade { opacity: 0; transition: opacity 0.6s var(--nf-res-foundation-fade-ease); }
.nf-res-foundation.is-js .nf-res-foundation__fade.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nf-res-foundation.is-js .nf-res-foundation__fade { transition: none; } }

/* ---------- Tablet (810 to 1439.98px): framer-v-7plc1r ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-foundation__head, .nf-res-foundation__grid { max-width: 810px; }
  .nf-res-foundation__card { flex-basis: calc((100% - 20px) / 2); gap: 16px; }
  /* card stack: icon, title, body in one column */
  .nf-res-foundation__main { flex-direction: column; gap: 16px; }
  .nf-res-foundation__text { display: contents; }
  .nf-res-foundation__foot { padding: 0; }
  /* row order: Heart/Lung, Women/Children, Productivity/Bedroom */
  .nf-res-foundation__card--heart { order: 1; }
  .nf-res-foundation__card--lung { order: 2; }
  .nf-res-foundation__card--women { order: 3; }
  .nf-res-foundation__card--children { order: 4; }
  .nf-res-foundation__card--productivity { order: 5; }
  .nf-res-foundation__card--bedroom { order: 6; }
}

/* ---------- Phone (<= 809.98px): framer-v-p59ry3 ---------- */
@media (max-width: 809.98px) {
  .nf-res-foundation__inner { gap: 28px; padding: 32px 16px; }
  .nf-res-foundation__head { max-width: none; gap: 40px; }
  .nf-res-foundation__title { font-size: 28px; line-height: 33.6px; }
  .nf-res-foundation__card { flex-basis: calc((100% - 20px) / 2); gap: 16px; padding: 16px; }
  .nf-res-foundation__main { flex-direction: column; gap: 8px; }
  .nf-res-foundation__text { display: contents; }
  .nf-res-foundation__icon { width: 24px; height: 24px; }
  .nf-res-foundation__foot { padding: 0; }
  .nf-res-foundation__name { font-size: 16px; line-height: 20px; }
  .nf-res-foundation__body { font-size: 14px; line-height: 16.8px; }
  .nf-res-foundation__src { font-size: 10px; line-height: 12.5px; }
  /* row order: Heart/Lung, Productivity/Bedroom, Women/Children */
  .nf-res-foundation__card--heart { order: 1; }
  .nf-res-foundation__card--lung { order: 2; }
  .nf-res-foundation__card--productivity { order: 3; }
  .nf-res-foundation__card--bedroom { order: 4; }
  .nf-res-foundation__card--women { order: 5; }
  .nf-res-foundation__card--children { order: 6; }
}
