/* Residential Management */

.dp-residential {
  --res-sage: #e9eddf;
  --res-line: #d9ded2;
  --res-radius: 18px;
  color: var(--dp-text);
}

.dp-residential .res-section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.dp-residential .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.dp-residential h1 em,
.dp-residential h2 em {
  color: #64764f;
  font-weight: 400;
}

.dp-residential p {
  text-wrap: pretty;
}

.dp-residential .res-body-copy {
  color: var(--dp-muted);
  font-size: 1.025rem;
}

.dp-residential .res-body-copy > :last-child {
  margin-bottom: 0;
}

/* Hero */

.dp-residential .res-hero {
  padding-block: 1.5rem clamp(4rem, 7vw, 6.5rem);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 95% 25%,
      rgba(211, 220, 195, 0.55),
      transparent 52%
    ),
    var(--dp-cream);
}

.dp-residential .res-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--dp-muted);
  font-size: 0.8rem;
}

.dp-residential .res-breadcrumb a {
  color: inherit;
}

.dp-residential .res-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.dp-residential .res-hero-grid > *,
.dp-residential .res-intro-grid > *,
.dp-residential .res-buffer-grid > *,
.dp-residential .res-broker-grid > *,
.dp-residential .res-contact-grid > * {
  min-width: 0;
}

.dp-residential .res-hero h1 {
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  line-height: 1.04;
  margin-bottom: 1.6rem;
}

.dp-residential .res-lead {
  max-width: 28rem;
  color: var(--dp-dark);
  font-size: clamp(1.15rem, 1.65vw, 1.4rem);
  line-height: 1.5;
}

.dp-residential .res-hero-description {
  max-width: 34rem;
  color: var(--dp-muted);
}

.dp-residential .res-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  margin-top: 2rem;
}

.dp-residential .res-actions .button {
  white-space: normal;
  text-align: center;
}

.dp-residential .res-property-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.dp-residential .res-property-types li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--res-line);
  border-radius: 100px;
  color: var(--dp-muted);
  font-size: 0.76rem;
}

.dp-residential .res-hero-visual {
  padding-bottom: 1.5rem;
}

.dp-residential .res-hero-media {
  overflow: hidden;
  aspect-ratio: 0.92;
  border-radius: 120px 18px 18px 18px;
  background: var(--dp-dark);
}

.dp-residential .res-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Designed fallback when no featured image is selected. */

.dp-residential .res-hero-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 4rem);
  color: #f6f5ee;
  background:
    radial-gradient(circle at 95% 0, rgba(157, 178, 122, 0.2), transparent 65%),
    #203d2e;
}

.dp-residential .res-art-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 2.5rem;
  border: 1px solid #627757;
  border-radius: 50%;
  color: #c4d3ab;
}

.dp-residential .res-art-icon .dp-icon {
  width: 32px;
  height: 32px;
}

.dp-residential .res-art-title {
  font-family: Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.dp-residential .res-art-caption {
  color: #d0d9c7;
  font-size: 0.85rem;
}

.dp-residential .res-image-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: calc(100% - 2rem);
  margin: -2.5rem auto 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--res-line);
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(23, 47, 37, 0.07);
}

.dp-residential .res-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--dp-green);
  background: var(--res-sage);
}

.dp-residential .res-image-note strong,
.dp-residential .res-image-note div > span {
  display: block;
}

.dp-residential .res-image-note strong {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.dp-residential .res-image-note div > span {
  color: var(--dp-muted);
  font-size: 0.78rem;
}

/* Introduction */

.dp-residential .res-intro {
  border-top: 1px solid var(--res-line);
  background: #fff;
}

.dp-residential .res-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
}

.dp-residential .res-intro h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.1vw, 3rem);
}

.dp-residential .res-emphasis {
  color: var(--dp-dark);
  font-size: 1.2rem;
  line-height: 1.55;
}

/* Services */

.dp-residential .res-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.dp-residential .res-section-heading h2 {
  margin-bottom: 0;
}

.dp-residential .res-section-heading > p {
  max-width: 26rem;
  margin: 0;
  color: var(--dp-muted);
}

.dp-residential .res-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dp-residential .res-service-card {
  padding: clamp(1.35rem, 2vw, 2rem);
  border: 1px solid var(--res-line);
  border-radius: var(--res-radius);
  background: #fff;
  transition:
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.dp-residential .res-service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.dp-residential .res-service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--dp-green);
  background: var(--res-sage);
  border-radius: 12px;
}

.dp-residential .res-service-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.dp-residential .res-service-number {
  color: #70796c;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.dp-residential .res-service-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.dp-residential .res-service-card p {
  margin: 0;
  color: var(--dp-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dp-residential .res-service-card:hover {
    border-color: #a7b694;
    box-shadow: 0 14px 30px rgba(23, 47, 37, 0.07);
  }
}

/* Dark owner-support section */

.dp-residential .res-buffer {
  color: #e2e8dc;
  background: var(--dp-dark);
}

.dp-residential .res-buffer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.dp-residential .res-buffer h2 {
  color: #fff;
}

.dp-residential .res-buffer h2 em {
  color: #c0d0a4;
}

.dp-residential .res-buffer .eyebrow {
  color: #c0d0a4;
}

.dp-residential .res-buffer p {
  max-width: 35rem;
}

.dp-residential .res-buffer .res-button-light {
  margin-top: 0.75rem;
  color: var(--dp-dark);
  background: #e9eddf;
  border-color: #e9eddf;
}

.dp-residential .res-buffer .res-button-light:hover {
  background: #fff;
  border-color: #fff;
}

.dp-residential .res-buffer-detail {
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.dp-residential .res-buffer-statement {
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  line-height: 1.25;
}

.dp-residential .res-topic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.4rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.dp-residential .res-topic-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.dp-residential .res-topic-list .dp-icon {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  color: #c0d0a4;
}

/* Brokers */

.dp-residential .res-broker-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.dp-residential .res-broker-card {
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--res-sage);
  border: 1px solid #d4ddc8;
  border-radius: var(--res-radius);
}

.dp-residential .res-broker-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 2rem;
  border: 1px solid #bcc9af;
  border-radius: 50%;
}

.dp-residential .res-broker-icon .dp-icon {
  width: 28px;
  height: 28px;
}

.dp-residential .res-broker-promise {
  color: var(--dp-dark);
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 3.7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.dp-residential .res-broker-promise em {
  color: #52683e;
}

.dp-residential .res-broker-card > strong {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--dp-green);
  font-size: 1.05rem;
}

/* Future sale */

.dp-residential .res-sales {
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.dp-residential .res-sales-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 4.5vw, 4.5rem);
  border: 1px solid var(--res-line);
  border-radius: var(--res-radius);
  background: #fff;
}

.dp-residential .res-sales-closing {
  color: var(--dp-dark);
  font-weight: 600;
}

.dp-residential .res-license {
  padding-top: 1.2rem;
  border-top: 1px solid var(--res-line);
  font-size: 0.8rem;
}

.dp-residential .res-editor-content {
  max-width: 850px;
}

/* Contact */

.dp-residential .res-contact {
  border-top: 1px solid var(--res-line);
  background: #eeefe6;
}

.dp-residential .res-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.dp-residential .res-contact-copy > p:not(.eyebrow) {
  max-width: 31rem;
  color: var(--dp-muted);
}

.dp-residential .res-contact-links {
  display: grid;
  gap: 1rem;
  margin-block: 2rem;
}

.dp-residential .res-contact-links a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: 100%;
  color: var(--dp-dark);
  text-decoration: none;
}

.dp-residential .res-contact-links a:hover {
  text-decoration: underline;
}

.dp-residential .res-contact-links span {
  overflow-wrap: anywhere;
}

.dp-residential .res-contact-area {
  padding-top: 1.5rem;
  border-top: 1px solid #d2d8c8;
  font-size: 0.87rem;
}

.dp-residential .contact-form-card {
  margin: 0;
  border-radius: var(--res-radius);
  box-shadow: 0 18px 45px rgba(23, 47, 37, 0.05);
}

.dp-residential .form-field input[readonly] {
  color: var(--dp-green);
  background: #f1f4eb;
}

/* Tablet */

@media (max-width: 1100px) {
  .dp-residential .res-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dp-residential .res-hero-grid,
  .dp-residential .res-intro-grid,
  .dp-residential .res-buffer-grid,
  .dp-residential .res-broker-grid,
  .dp-residential .res-sales-panel,
  .dp-residential .res-contact-grid {
    grid-template-columns: 1fr;
  }

  .dp-residential .res-hero-copy {
    max-width: 650px;
  }

  .dp-residential .res-hero-visual {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .dp-residential .res-hero-media {
    aspect-ratio: 1.35;
    border-top-left-radius: 90px;
  }

  .dp-residential .res-intro h2 {
    max-width: 25ch;
  }

  .dp-residential .res-buffer-detail {
    padding: 2rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .dp-residential .res-section-heading {
    display: block;
  }

  .dp-residential .res-section-heading > p {
    max-width: 38rem;
    margin-top: 1.3rem;
  }

  .dp-residential .res-contact-copy > p:not(.eyebrow) {
    max-width: 40rem;
  }
}

/* Phones */

@media (max-width: 600px) {
  .dp-residential .res-hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .dp-residential .res-services-grid,
  .dp-residential .res-topic-list,
  .dp-residential .form-grid {
    grid-template-columns: 1fr;
  }

  .dp-residential .res-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dp-residential .res-actions .button {
    justify-content: center;
    width: 100%;
  }

  .dp-residential .res-actions .text-link {
    align-self: flex-start;
  }

  .dp-residential .res-hero-media {
    aspect-ratio: auto;
    min-height: 340px;
    border-top-left-radius: 70px;
  }

  .dp-residential .res-hero-image {
    height: 380px;
  }

  .dp-residential .res-hero-art {
    min-height: 360px;
    padding: 2.5rem 1.75rem;
  }

  .dp-residential .res-image-note {
    width: calc(100% - 1rem);
    padding: 1rem;
    gap: 0.75rem;
  }

  .dp-residential .res-service-card {
    padding: 1.5rem;
  }

  .dp-residential .res-service-top {
    margin-bottom: 1.25rem;
  }

  .dp-residential .res-broker-card,
  .dp-residential .res-sales-panel {
    padding: 1.75rem;
  }

  .dp-residential .res-breadcrumb {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-residential .res-service-card {
    transition: none;
  }
}


/* =========================================
   RESIDENTIAL: PHOTOGRAPHY UPDATE
   ========================================= */

/* Hero layout */

.dp-residential.res-photo-page .res-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.dp-residential.res-photo-page .res-hero-copy,
.dp-residential.res-photo-page .res-hero-visual {
    min-width: 0;
}

.dp-residential.res-photo-page .res-hero-visual {
    position: relative;
}

.res-photo-page .res-photo-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: #dfe6d7;
    box-shadow: 0 20px 50px rgb(23 47 37 / 10%);
}

/* All three photographs */

.dp-residential.res-photo-page .res-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: var(--res-photo-position, 50% 50%);
    transition: transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

/* Keep the hero note readable beneath the photo */

.dp-residential.res-photo-page .res-image-note {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: auto;
    max-width: none;
    margin: 1rem 0 0;
    padding: 1.1rem 1.2rem;
    transform: none;
    border: 1px solid #d9ddd3;
    border-radius: 10px;
    background: #ffffff;
    color: #294d38;
    box-shadow: none;
}

.dp-residential.res-photo-page .res-image-note > div {
    min-width: 0;
}

.dp-residential.res-photo-page .res-image-note strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.dp-residential.res-photo-page .res-image-note span:not(.res-note-icon) {
    display: block;
    color: #5e6960;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Introduction: photograph left, text right */

.dp-residential.res-photo-page .res-intro {
    background: #f0f3e9;
}

.res-photo-page .res-photo-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.dp-residential.res-photo-page .res-photo-frame {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 16px;
    background: #dfe6d7;
    box-shadow: 0 16px 40px rgb(23 47 37 / 7%);
}

.res-photo-page .res-photo-copy {
    min-width: 0;
}

.dp-residential.res-photo-page .res-photo-copy h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.res-photo-page .res-photo-copy > p:last-child {
    margin-bottom: 0;
}

/* Future sale: text left, photograph right */

.dp-residential.res-photo-page .res-sales-panel.res-photo-sales {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
    overflow: hidden;
    border: 1px solid #d5ddca;
    border-radius: 18px;
    background: #edf1e5;
}

.res-photo-page .res-photo-sales-copy {
    min-width: 0;
}

.dp-residential.res-photo-page .res-photo-sales-copy h2 {
    margin-bottom: 1.5rem;
}

.dp-residential.res-photo-page .res-photo-frame--sales {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    box-shadow: none;
}

.res-photo-page .res-photo-sales-copy > p:last-child {
    margin-bottom: 0;
}

/* Subtle zoom on mouse devices */

@media (hover: hover) and (pointer: fine) {
    .res-photo-page .res-photo-frame:hover .res-photo-image,
    .res-photo-page .res-photo-hero-frame:hover .res-photo-image {
        transform: scale(1.035);
    }
}

/* Tablet: stack photographs and copy */

@media (max-width: 1000px) {
    .dp-residential.res-photo-page .res-hero-grid,
    .res-photo-page .res-photo-layout,
    .dp-residential.res-photo-page .res-sales-panel.res-photo-sales {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .res-photo-page .res-photo-hero-frame,
    .dp-residential.res-photo-page .res-photo-frame {
        aspect-ratio: 16 / 10;
    }

    .res-photo-page .res-photo-copy,
    .res-photo-page .res-photo-sales-copy {
        max-width: 760px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .res-photo-page .res-photo-hero-frame,
    .dp-residential.res-photo-page .res-photo-frame {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .dp-residential.res-photo-page .res-photo-copy h2 {
        font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    }

    .dp-residential.res-photo-page .res-sales-panel.res-photo-sales {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .dp-residential.res-photo-page .res-image-note {
        gap: 0.75rem;
        padding: 1rem;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .dp-residential.res-photo-page .res-photo-image {
        transition: none;
    }

    .res-photo-page .res-photo-frame:hover .res-photo-image,
    .res-photo-page .res-photo-hero-frame:hover .res-photo-image {
        transform: none;
    }
}