/* Residential booking CTA. Kept separate from the shared industry banners. */
.residential-cta {
  scroll-margin-top: 120px;
  padding: clamp(44px, 6vw, 76px) 0;
  background: var(--surface);
}

.residential-cta + .faq {
  margin-top: 0;
}

/* The CTA now follows the curved banner instead of the work gallery. */
.page-real-estate .portfolio-marquee + .residential-cta {
  position: relative;
  z-index: 1;
  margin-top: clamp(-146px, -10vw, -94px);
  padding-top: 16px;
  padding-bottom: clamp(32px, 4vw, 48px);
  background: transparent;
}

.page-real-estate .residential-cta + #work .selected-work__head {
  margin-top: 0;
}

@media (max-width: 600px) {
  .page-real-estate .portfolio-marquee + .residential-cta {
    margin-top: -66px;
  }
}

.residential-cta__panel {
  overflow: hidden;
  border: 1px solid rgba(196, 141, 38, 0.28);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: var(--white-on-dark);
  box-shadow: var(--shadow-md);
}

.residential-cta__main {
  position: relative;
  isolation: isolate;
  min-height: 520px;
}

.residential-cta__visual {
  position: absolute;
  inset: 0 0 0 34%;
  margin: 0;
}

.residential-cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}

.residential-cta__visual::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -2px;
  background:
    linear-gradient(90deg, var(--surface-strong) 0%, rgba(16, 33, 13, 0.95) 9%, rgba(16, 33, 13, 0.7) 26%, rgba(16, 33, 13, 0) 63%),
    linear-gradient(0deg, rgba(16, 33, 13, 0.85), rgba(16, 33, 13, 0) 35%);
  pointer-events: none;
}

.residential-cta__visual figcaption {
  position: absolute;
  right: 32px;
  bottom: 26px;
  z-index: 1;
  color: var(--white-on-dark);
  font-size: 0.83rem;
  letter-spacing: 0.025em;
}

.residential-cta__copy {
  position: relative;
  z-index: 1;
  width: 59%;
  padding: clamp(32px, 4vw, 52px);
  text-align: left;
}

.residential-cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--white-on-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.residential-cta__eyebrow::before {
  content: "";
  flex: 0 0 25px;
  height: 2px;
  background: var(--gold);
}

.residential-cta h2 {
  margin: 0;
  color: var(--white-on-dark);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.residential-cta h2 span {
  display: block;
  color: var(--gold);
}

.residential-cta__description {
  max-width: 39ch;
  margin: 22px 0 28px;
  color: rgba(245, 241, 232, 0.84);
  font-size: 1.08rem;
  line-height: 1.6;
}

.residential-cta .residential-cta__book {
  min-height: 62px;
  justify-content: space-between;
  gap: 32px;
  padding: 0 28px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  box-shadow: 0 10px 26px rgba(196, 141, 38, 0.2);
}

.residential-cta__book > span {
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--ease);
}

.residential-cta__book:hover > span {
  transform: translate(2px, -2px);
}

.residential-cta a:focus-visible {
  outline: 3px solid var(--white-on-dark);
  outline-offset: 5px;
}

.residential-cta__reassurance {
  margin: 10px 0 0;
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.88rem;
}

.residential-cta__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  margin: 26px 0 0;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.92rem;
}

.residential-cta__contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--white-on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(245, 241, 232, 0.35);
  text-underline-offset: 4px;
}

.residential-cta__contact a:hover {
  text-decoration-color: var(--gold);
}

.residential-cta__proof {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 25px 36px;
  border-top: 1px solid rgba(245, 241, 232, 0.14);
  background: var(--surface-strong);
}

.residential-cta__proof li {
  padding: 0 20px;
}

.residential-cta__proof li + li {
  border-left: 1px solid rgba(245, 241, 232, 0.16);
}

.residential-cta__proof strong,
.residential-cta__proof span {
  display: block;
}

.residential-cta__proof strong {
  color: var(--white-on-dark);
  font-family: var(--font-heading);
  font-size: 0.97rem;
  line-height: 1.35;
}

.residential-cta__proof span {
  margin-top: 5px;
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .residential-cta__copy {
    width: 65%;
    padding: 36px;
  }

  .residential-cta h2 {
    font-size: clamp(2.5rem, 4.7vw, 3rem);
  }

  .residential-cta__proof {
    padding-inline: 16px;
  }

  .residential-cta__proof li {
    padding-inline: 16px;
  }
}

@media (max-width: 700px) {
  .residential-cta__panel {
    border-radius: 20px;
  }

  .residential-cta__main {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .residential-cta__visual {
    position: relative;
    inset: auto;
    height: clamp(190px, 58vw, 290px);
  }

  .residential-cta__visual img {
    object-position: 50% 56%;
  }

  .residential-cta__visual::after {
    background: linear-gradient(0deg, var(--surface-strong) 0%, rgba(16, 33, 13, 0) 60%);
  }

  .residential-cta__visual figcaption {
    display: none;
  }

  .residential-cta__copy {
    width: 100%;
    margin-top: -12px;
    padding: 0 24px 28px;
  }

  .residential-cta__eyebrow {
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.65rem;
    letter-spacing: 0.11em;
  }

  .residential-cta__eyebrow::before {
    flex-basis: 16px;
  }

  .residential-cta h2 {
    font-size: clamp(2.02rem, 8.2vw, 3.1rem);
  }

  .residential-cta__description {
    max-width: 46ch;
    margin: 18px 0 22px;
    font-size: 1rem;
  }

  .residential-cta .residential-cta__book {
    width: 100%;
    min-height: 58px;
    gap: 12px;
    padding-inline: 20px;
    font-size: 0.83rem;
  }

  .residential-cta__reassurance {
    text-align: center;
    font-size: 0.84rem;
  }

  .residential-cta__contact {
    justify-content: center;
    margin-top: 16px;
    column-gap: 6px;
    font-size: 0.85rem;
  }

  .residential-cta__proof {
    grid-template-columns: 1fr;
    padding: 6px 24px;
  }

  .residential-cta__proof li {
    padding: 15px 0;
  }

  .residential-cta__proof li + li {
    border-top: 1px solid rgba(245, 241, 232, 0.12);
    border-left: 0;
  }

  .residential-cta__proof strong {
    font-size: 0.91rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .residential-cta .residential-cta__book,
  .residential-cta__book > span {
    transition: none;
    transform: none;
  }
}

/* 2026-10-08: the CTA no longer climbs onto the curved banner (it read as overlapped at 100% zoom),
   and the panel is compacted so the whole thing fits on a laptop screen. */
.page-real-estate .portfolio-marquee + .residential-cta,
.portfolio-marquee + .residential-cta {
  margin-top: 0;
  padding-top: clamp(8px, 1.4vw, 20px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

@media (min-width: 701px) {
  .residential-cta__main {
    min-height: 420px;
  }

  .residential-cta__copy {
    padding: clamp(28px, 3vw, 40px) clamp(28px, 3.4vw, 46px);
  }

  .residential-cta__eyebrow {
    margin-bottom: 14px;
  }

  .residential-cta h2 {
    font-size: clamp(2.2rem, 3.3vw, 2.85rem);
  }

  .residential-cta__description {
    margin: 14px 0 20px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .residential-cta .residential-cta__book {
    min-height: 54px;
    padding: 0 24px;
  }

  .residential-cta__reassurance {
    margin-top: 8px;
  }

  .residential-cta__contact {
    margin-top: 6px;
  }

  .residential-cta__proof {
    padding: 16px 32px;
  }

  .residential-cta__proof strong {
    font-size: 0.9rem;
  }

  .residential-cta__proof span {
    margin-top: 3px;
    font-size: 0.82rem;
  }
}

/* A shorter band with a flatter curve when the CTA follows it, so no empty white bowl sits between them. */
.portfolio-marquee:has(+ .residential-cta) .portfolio-marquee__bleed {
  min-height: 0;
  padding-bottom: clamp(70px, 6.4vw, 104px);
  /* No bottom inner shadow: it showed as a grey line under the curve. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-marquee:has(+ .residential-cta) .portfolio-marquee__bleed::after {
  bottom: clamp(-150px, -9vw, -110px);
  height: clamp(170px, 14vw, 224px);
}

/* The arch matches the white page under it, so there is no off-white band. */
.portfolio-marquee:has(+ .residential-cta) .portfolio-marquee__bleed::after {
  background: #ffffff;
  box-shadow: none;
}

/* The band's clipped bottom edge lands on a fractional pixel and leaves a 1px green line; the white CTA section covers it. */
.page-real-estate .portfolio-marquee + .residential-cta,
.portfolio-marquee + .residential-cta {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  background: #ffffff;
}
