/* ==========================================================================
   Residential / Ducted: "FOR HOMES WITH DUCTED OR CENTRAL A/C"
   Live: framer-XT84n component (1lmndmg desktop, 1y5sret tablet, w7k52k phone).
   Sizes, gaps and paddings copied from the Framer CSS. Option B (2026-11-12): on black, no background photo (see the end of the file).
   ========================================================================== */

/* ---------- Desktop (>= 1440px) ---------- */
.nf-res-ducted {
  position: relative; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 0;
  width: 100%; height: min-content; padding: 80px 60px; overflow: clip;
  isolation: isolate;  /* Danny (2026-10-23), not like live: its z-indexed layers stay under the nav */
}
.nf-res-ducted__card {
  position: relative; z-index: 2; flex: 1 0 0px; display: flex; flex-flow: column; justify-content: flex-start; align-items: flex-start; gap: 56px;
  width: 1px; max-width: 1440px; height: min-content; padding: 40px; overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7); border-radius: 40px; /* Danny, 2026-10-29 (was 50% black, 18px) */
}
.nf-res-ducted__content {
  position: relative; flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 60px;
  width: 100%; height: min-content; padding: 0; overflow: visible;
}

/* House render (not on live, Danny 2026-10-27) on a grey tile like the size section's plan image (#f5f5f5, 20px corners;
   Danny 2026-10-29). Desktop is two columns, tile (2 parts) | text with the buttons under it (3 parts), 60px apart (Danny).
   The tile's width comes from its column (Safari sized a stretched aspect-ratio box from the row height, leaving a wide
   gap).
   The render (Danny 2026-11-12) is the How it works "EcoFlow, inside your A/C" card's
   (hiw-villas-ecoflow-card-atp-desktop, 1600 x 1280 = 5:4): a close crop of the home with its EcoFlow units, so it
   fills the tile as it is (object-fit cover), 5:4 on desktop, 16:10 on tablet, 4:3 on phones, kept to the top so the
   ceiling units stay in view. It replaced the zoomed-in crop of the full house render (res-ducted-house-atp). */
.nf-res-ducted__visual {
  position: relative; align-self: center; display: block;
  width: 100%; aspect-ratio: 5 / 4; padding: 0; overflow: hidden; border-radius: 20px; background-color: #f5f5f5;
}
.nf-res-ducted__visual picture { display: block; width: 100%; height: 100%; }
.nf-res-ducted__house { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; } /* no hover effect (Danny) */
.nf-res-ducted__main { display: flex; flex-flow: column; justify-content: center; align-items: flex-start; gap: 40px; min-width: 0; }
.nf-res-ducted__text {
  position: relative; flex: 1 0 0px; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 24px;
  width: auto; height: min-content; padding: 0; overflow: clip;
}
.nf-res-ducted__header {
  position: relative; flex: 0 0 auto; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 16px;
  width: 100%; height: min-content; padding: 0; overflow: clip;
}
.nf-res-ducted__wrap { position: relative; flex: 0 0 auto; width: 100%; max-width: 100%; height: auto; }
.nf-res-ducted__wrap--eyebrow { z-index: 3; }
.nf-res-ducted__eyebrow, .nf-res-ducted__title, .nf-res-ducted__copy {
  font-style: normal; text-align: left; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
}
.nf-res-ducted__eyebrow {
  font-family: SFProText-Regular, "SF Pro Text", "Nafas Inter", sans-serif; font-weight: 400;
  font-size: 15px; line-height: 21px; letter-spacing: -0.6px; color: rgb(145, 200, 81);
}
.nf-res-ducted__title {
  font-family: SFProText-Medium, "SF Pro Text", "Nafas Inter", sans-serif; font-weight: 500;
  font-size: 42px; line-height: 50.4px; letter-spacing: -2.52px; color: rgb(255, 255, 255);
  text-wrap: balance; /* no lone last word in the narrower column (not on live) */
}
.nf-res-ducted__copy {
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400;
  font-size: 20px; line-height: 28px; letter-spacing: normal; color: rgb(245, 245, 245);
}

.nf-res-ducted__ctas {
  position: relative; flex: 0 0 auto; display: flex; flex-flow: column; justify-content: center; align-items: center; gap: 10px;
  width: min-content; height: min-content; padding: 0; overflow: clip;
}
.nf-res-ducted__btn {
  position: relative; flex: 0 0 auto; display: flex; flex-flow: row; justify-content: center; align-items: center; gap: 10px;
  width: 270px; height: 54px; padding: 16px 24px; overflow: visible; cursor: pointer; text-decoration: none;
  border-radius: 32px; background-color: rgba(0, 0, 0, 0);
  color: rgb(0, 0, 238); /* live: Framer leaves the UA link colour on <a> (only seen by its 0px border) */
}
.nf-res-ducted__btn:focus-visible { outline: 2px solid rgb(145, 200, 81); outline-offset: 2px; } /* keyboard ring (not on live) */
.nf-res-ducted__btn--green { align-self: stretch; width: auto; background-color: rgb(145, 200, 81); transition: background-color 0.2s ease-out; }
@media (hover: hover) { .nf-res-ducted__btn--green:hover { background-color: rgb(165, 207, 118); } }
.nf-res-ducted__btn--white { gap: 4px; }
.nf-res-ducted__btn-text {
  position: relative; flex: 0 0 auto;
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", sans-serif; font-weight: 400; font-style: normal;
  font-size: 21px; line-height: 25.2px; letter-spacing: normal; text-align: start; color: rgb(0, 0, 0); white-space: pre;
}
.nf-res-ducted__btn--white .nf-res-ducted__btn-text { color: rgb(255, 255, 255); text-decoration: underline; }
.nf-res-ducted__arrow {
  position: relative; flex: 0 0 auto; width: 24px; height: 24px; overflow: hidden;
  fill: none; stroke: rgb(255, 255, 255); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* desktop: Become a Member + link side by side under the text, like the size section's buttons */
@media (min-width: 1440px) {
  .nf-res-ducted__ctas { flex-flow: row; justify-content: flex-start; gap: 32px; width: auto; max-width: 100%; }
  .nf-res-ducted__btn--green { align-self: auto; width: 270px; }
  .nf-res-ducted__btn--white { width: auto; padding-left: 0; padding-right: 0; }   /* a text link: no side padding, so both fit the 592px column at 1440 */
}

/* Scroll reveal (Framer appear, threshold 0.5, replays at both viewport edges; 0.4s ease, opacity only) */
.nf-res-ducted.is-js [data-res-ducted-reveal] { opacity: 0; transition: opacity 0.4s ease; }
.nf-res-ducted.is-js [data-res-ducted-reveal].is-in { opacity: 1; }

/* ---------- Tablet (810px to 1439.98px) ---------- */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-ducted__card { max-width: 810px; }
  .nf-res-ducted__content { display: flex; flex-direction: column; align-content: flex-start; align-items: flex-start; gap: 32px; }
  .nf-res-ducted__content > * { width: 100%; }
  .nf-res-ducted__visual { aspect-ratio: 16 / 10; }
  .nf-res-ducted__main { gap: 32px; }
  .nf-res-ducted__text { flex: 0 0 auto; width: 100%; gap: 32px; }
}

/* ---------- Phone (<= 809.98px) ---------- */
@media (max-width: 809.98px) {
  .nf-res-ducted { padding: 56px 16px; }
  .nf-res-ducted__card { max-width: none; }
  .nf-res-ducted__content { display: flex; flex-direction: column; align-content: flex-start; align-items: flex-start; gap: 32px; }
  .nf-res-ducted__card { padding: 24px; }
  .nf-res-ducted__visual { aspect-ratio: 4 / 3; border-radius: 14px; }
  .nf-res-ducted__main { gap: 25px; width: 100%; }
  .nf-res-ducted__text { flex: 0 0 auto; gap: 25px; width: 100%; }
  .nf-res-ducted__header { gap: 10px; }
  .nf-res-ducted__eyebrow { font-size: 12px; line-height: 16.8px; letter-spacing: -0.48px; }
  .nf-res-ducted__title { font-size: 22px; line-height: 26.4px; letter-spacing: -1.32px; }
  .nf-res-ducted__copy { font-size: 15px; line-height: 20px; letter-spacing: 0.6px; }
  .nf-res-ducted__ctas { width: 100%; }
  .nf-res-ducted__btn { width: 100%; height: min-content; max-height: 35px; padding: 16px; gap: 5px; }
  .nf-res-ducted__btn--green { align-self: auto; }
  .nf-res-ducted__btn--white { gap: 4px; }
  .nf-res-ducted__btn-text { font-size: 15px; line-height: 18px; }
}

/* ---------- Option B (Danny, 2026-11-12; chosen from the A/B review page residential-ab.html) ----------
   No A/C photo and no see-through card: image and text sit straight on black. The image is as big as the size
   section's photo ("Built for the size of your home."): its column is (min(viewport, 1560) - 2 x 60 - 48) / 2 wide
   and 512px tall on desktop (636 x 512 at 1440), full width and 514px tall on tablet, 4:3 on phones. Text sizes,
   gaps and buttons match the size section; the colours stay the section's own (green eyebrow, white on black). */
.nf-res-ducted { background-color: #000; }
.nf-res-ducted__card { max-width: 1440px; padding: 0; background-color: transparent; border-radius: 0; }
.nf-res-ducted__eyebrow {
  font: 500 16px/19.2px var(--nf-font-medium); letter-spacing: normal; text-transform: uppercase; color: var(--nf-green, #91c851);
}
.nf-res-ducted__title { font: 400 52px/62.4px var(--nf-font-sfns-text); letter-spacing: normal; color: #fff; }
.nf-res-ducted__copy { max-width: 34em; font: 400 20px/28px var(--nf-font-regular); letter-spacing: normal; color: #fff; }
.nf-res-ducted__header { gap: 16px; }
.nf-res-ducted__text { gap: 20px; }
.nf-res-ducted__main { gap: 32px; }
.nf-res-ducted__ctas {
  flex-flow: row wrap; justify-content: flex-start; align-items: center; gap: 16px; width: auto; max-width: 100%; overflow: visible;
}
.nf-res-ducted__btn { height: 54px; padding: 16px 24px; }
.nf-res-ducted__btn--green { align-self: auto; width: 316px; }
.nf-res-ducted__btn--white { width: auto; gap: 4px; padding: 16px 0 16px 8px; }
.nf-res-ducted__btn-text { font: 400 21px/25.2px var(--nf-font-regular); }
.nf-res-ducted__btn--white .nf-res-ducted__btn-text { text-underline-offset: 3px; }
.nf-res-ducted__arrow { margin: -3px 0; }
@media (min-width: 1440px) {
  .nf-res-ducted__content { grid-template-columns: calc((min(100vw, 1560px) - 168px) / 2) minmax(0, 1fr); gap: 48px; }
  .nf-res-ducted__visual { aspect-ratio: auto; height: 512px; }   /* the size section's photo is 512px tall at every desktop width */
  .nf-res-ducted { padding-top: 100px; padding-bottom: 100px; }   /* as the dark "Healthy air isn't just about comfort" section (Danny, 2026-11-13) */
}
@media (min-width: 810px) and (max-width: 1439.98px) {
  .nf-res-ducted__card { max-width: none; }
  .nf-res-ducted__content { gap: 40px; }
  .nf-res-ducted__visual { aspect-ratio: auto; height: 514px; }
  .nf-res-ducted__house { object-position: 50% 25%; }
}
@media (max-width: 809.98px) {
  .nf-res-ducted { padding: 40px 16px; }   /* 40px above and below on phones, as on /business (Danny, 2026-11-13) */
  .nf-res-ducted__card { padding: 0; }
  .nf-res-ducted__content { gap: 24px; }
  .nf-res-ducted__eyebrow { font-size: 14px; line-height: 16.8px; }
  .nf-res-ducted__title { font-size: 28px; line-height: 33.6px; }
  .nf-res-ducted__copy { font-size: 16px; line-height: 22px; }
  .nf-res-ducted__header { gap: 10px; }
  .nf-res-ducted__text { gap: 14px; }
  .nf-res-ducted__main { gap: 24px; }
  .nf-res-ducted__ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .nf-res-ducted__btn { height: 35px; padding: 0 16px; }
  .nf-res-ducted__btn--green { align-self: center; width: calc(100vw - 112px); max-width: 100%; }   /* as the size section's phone button: 278px at 390 */
  .nf-res-ducted__btn--white { height: 24px; padding: 0; justify-content: center; }
  .nf-res-ducted__btn-text { font-size: 15px; line-height: 18px; }
}
