/* ============================================================
   Residential floor plan page: laptop compare, add-on pricing,
   work grid, and the standard CTA.
   ============================================================ */

.page-floor-plan.page-floor-plan--residential {
  background: var(--portfolio-work-bg, #fcfbf7);
}

.page-floor-plan--residential .main {
  padding-bottom: 0;
}

.page-floor-plan--residential :is(.fp-story, .fp-addon, .selected-work) {
  scroll-margin-top: 112px;
}

.fp-story__lede {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

/* Standard three stat cards under the laptop. */
.page-floor-plan--residential .hdr-story__stats.home-service-hub {
  width: min(100%, 1120px);
  margin: clamp(-26px, -1.6vw, -8px) auto 0;
  padding: 0;
  overflow: visible;
  isolation: auto;
  background: transparent;
}

.page-floor-plan--residential .hdr-story__stats .service-switcher__stats {
  margin-top: 0;
}

.page-floor-plan--residential .hdr-story__comparison {
  background: #ffffff;
}

/* The photo-darkening gradient reads as grey haze on a white plan. */
.page-floor-plan--residential .hdr-story__comparison::after {
  background: none;
}

/* ---------- Add-on pricing ---------- */

.fp-addon {
  padding: clamp(36px, 5vw, 72px) 0 0;
}

.fp-addon__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.5fr);
  gap: clamp(26px, 3.6vw, 52px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 48px);
  border: 1px solid rgba(196, 141, 38, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 0%, rgba(243, 198, 109, 0.12), transparent 34%),
    linear-gradient(150deg, #3e5b23 0%, #17350e 56%, #0a180a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 28px 60px rgba(3, 12, 5, 0.22);
  color: var(--white-on-dark);
}

.fp-addon__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(196, 141, 38, 0.18);
  color: #f3c66d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fp-addon__price h2 {
  max-width: 14ch;
  margin: 16px 0 0;
  color: #fffaf0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.fp-addon__amount {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}

.fp-addon__amount strong {
  color: #f3c66d;
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.fp-addon__amount span {
  max-width: 11ch;
  color: rgba(245, 241, 232, 0.9);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.fp-addon__facts {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fp-addon__facts li {
  position: relative;
  padding-left: 30px;
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
}

.fp-addon__facts li::before {
  content: "";
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(243, 198, 109, 0.18);
}

.fp-addon__facts li::after {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 7px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #f3c66d;
  border-bottom: 2px solid #f3c66d;
  transform: rotate(45deg);
}

.fp-addon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.fp-addon__link {
  color: #f3c66d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(243, 198, 109, 0.5);
  text-underline-offset: 5px;
}

.fp-addon__link:hover,
.fp-addon__link:focus-visible {
  text-decoration-color: #f3c66d;
}

.fp-addon__choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.fp-addon__or {
  display: grid;
  place-items: center;
  align-self: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(243, 198, 109, 0.42);
  border-radius: 50%;
  background: #183412;
  color: #f3c66d;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
}

.fp-choice {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fffdf8;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: transform var(--ease);
}

.fp-choice:hover {
  transform: translateY(-4px);
}

.fp-choice__media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.fp-choice__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-choice__body {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
}

.fp-choice__badge {
  justify-self: start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #f3c66d;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fp-choice--3d .fp-choice__badge {
  background: var(--gold);
  color: #10210d;
}

.fp-choice h3 {
  margin: 4px 0 0;
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fp-choice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Work grid (same marquee title as the HDR page) ---------- */

.page-floor-plan--residential .portfolio-marquee {
  padding-top: clamp(40px, 5vw, 72px);
  background: transparent;
}

.page-floor-plan--residential .portfolio-marquee--title .portfolio-marquee__bleed {
  padding-top: clamp(28px, 3.4vw, 36px);
  /* No bottom inner shadow: it peeked through a sub-pixel edge under the curve as a grey line. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-floor-plan--residential .portfolio-marquee--title .portfolio-marquee__inner {
  display: grid;
  place-items: center;
}

.page-floor-plan--residential .portfolio-marquee__title {
  margin: 0;
  color: #fff3df;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 0 rgba(7, 14, 9, 0.18);
}

.page-floor-plan--residential .selected-work {
  padding-top: 8px;
}

.page-floor-plan--residential .selected-work__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-floor-plan--residential .work-card {
  aspect-ratio: 3 / 2;
  background: #ffffff;
}

.page-floor-plan--residential .work-card img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #ffffff;
}

/* The angled render sits on a warm grey studio backdrop. */
.page-floor-plan--residential .work-card--tint,
.page-floor-plan--residential .work-card--tint img {
  background: #eeece8;
}

.page-floor-plan--residential .home-cta {
  margin-top: 0;
}

.page-floor-plan--residential .home-cta__visual img {
  object-position: 50% 50%;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .fp-addon__panel {
    grid-template-columns: 1fr;
  }

  .fp-addon__price h2 {
    max-width: none;
  }
}

@media (max-width: 740px) {
  .page-floor-plan--residential .selected-work__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fp-story__lede {
    margin-left: 0;
    font-size: 0.96rem;
    text-align: left;
  }

  .fp-addon__panel {
    border-radius: 24px;
  }

  .fp-addon__choices {
    grid-template-columns: 1fr;
  }

  .fp-addon__or {
    justify-self: center;
    margin: -4px 0;
  }

  .fp-addon__actions .btn {
    width: 100%;
  }

  .page-floor-plan--residential .selected-work__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
