/* V41: the six annotated homepage corrections. */

/* 1. All three service directions share the same caption, title and arrow rhythm. */
#services > .home-service-direction-grid .home-service-direction-item > figure {
  margin: 0 0 16px;
}
#services > .home-service-direction-grid figcaption,
#services > .home-service-direction-grid figcaption a {
  color: var(--adaptive-muted, #657181);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
#services > .home-service-direction-grid figcaption {
  display: block;
  box-sizing: border-box;
  min-height: 46px;
  margin: 0;
  padding: 10px 0 0;
}
#services > .home-service-direction-grid figcaption a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#services > .home-service-direction-grid .home-service-direction-copy strong {
  display: block;
  min-height: 2.5em;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--adaptive-ink, #0b1b2e);
}
#services > .home-service-direction-grid .home-service-direction-arrow {
  margin-top: 14px;
  font-size: 26px;
  color: var(--adaptive-gold, #9b793c);
}

/* 2. Compact developer cards; overview link belongs to the block footer. */
#development .developer-services-heading { display: block; margin-bottom: 24px; }
#development h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
#development .developer-service-grid { gap: 24px; }
#development .developer-service-link {
  padding: 26px;
  gap: 14px;
  border: 0;
  background: var(--adaptive-surface, #f7f5f0);
  grid-template-rows: auto 1fr;
}
#development .developer-service-heading strong {
  min-height: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}
#development .developer-service-description {
  opacity: 1;
  color: var(--adaptive-muted, #657181);
  font-size: 15px;
  line-height: 1.6;
}
#development .developer-services-footer { margin: 16px 0 0; }
#development .developer-overview { margin: 0; white-space: normal; }

/* 3. Shared content rows align card bottoms, links and provider headings. */
@supports (grid-template-rows: subgrid) {
  #residential-services .service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    align-items: stretch;
  }
  #residential-services .service-list > .service-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 8;
    row-gap: 0;
    align-items: stretch;
    margin: 0 0 28px;
    padding: 0;
    min-width: 0;
    border: 0;
    background: var(--adaptive-surface, #f7f5f0);
  }
  #residential-services .service-card > .service-photo {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 2;
    row-gap: 0;
    margin: 0;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    align-self: stretch;
  }
  #residential-services .service-photo > img {
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  #residential-services .service-photo > figcaption {
    grid-row: 2;
    margin: 0;
    padding: 10px 22px 0;
  }
  #residential-services .service-card > .service-card-copy {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 3 / span 3;
    row-gap: 0;
    padding: 22px 22px 0;
    min-width: 0;
    width: auto;
  }
  #residential-services .service-card-copy > h3 {
    grid-row: 1;
    margin: 0 0 14px;
    min-height: 0;
    font-size: 24px;
    line-height: 1.3;
    align-self: start;
  }
  #residential-services .service-card-copy > .service-copy-body {
    grid-row: 2;
    margin: 0 0 20px;
  }
  #residential-services .service-card-copy > .service-copy-actions {
    grid-row: 3;
    margin: 0;
    padding: 0 0 20px;
    align-self: start;
  }
  #residential-services .service-card > .service-provider-summary {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 6 / span 3;
    row-gap: 0;
    align-self: stretch;
    margin: 0 22px 22px;
    padding: 17px 0 0;
    border-top: 1px solid var(--adaptive-line, #ded8cc);
  }
  #residential-services .service-provider-summary > :nth-child(1) { grid-row: 1; margin-bottom: 10px; }
  #residential-services .service-provider-summary > :nth-child(2) { grid-row: 2; margin-bottom: 12px; }
  #residential-services .service-provider-summary > :nth-child(3) { grid-row: 3; }
  @media (max-width: 1100px) {
    #residential-services .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

/* 4. All three property directions appear on the first screen. */
.home-page .hero-copy .segment { font-size: 13px; line-height: 1.7; letter-spacing: .04em; }

/* 5. The owners' link uses the same weight, underline and arrow as other CTAs. */
#negotiations a.negotiations-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--cv-gold, #c8a66a);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
}
.home-page a.conversion-link > span[aria-hidden="true"] { color: var(--cv-gold, #c8a66a); flex: 0 0 auto; }
#negotiations a.negotiations-link:hover { color: #edd3a4; }
#negotiations a.negotiations-link:focus-visible { outline: 2px solid var(--cv-gold, #c8a66a); outline-offset: 5px; }

/* 6. A balanced introduction and contact column; native form stays functional. */
#project-request .inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
#project-request .inquiry-intro h2 {
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.15;
  letter-spacing: -.03em;
  max-width: 100%;
  margin: 0 0 24px;
}
#project-request .inquiry-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0 0 20px;
}
#project-request .inquiry-intro > p.management-scope { font-size: 14px; line-height: 1.65; }
#project-request .inquiry-contact-panel,
#project-request form.inquiry-form {
  min-width: 0;
  padding: 28px;
  background: var(--adaptive-raised, #fff);
  border: 1px solid var(--adaptive-line, #e1dbd0);
}
#project-request .inquiry-contact-panel .inquiry-owner {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  gap: 8px;
}
#project-request .inquiry-contact-panel .inquiry-owner strong { font-size: 22px; line-height: 1.3; }
#project-request .inquiry-contact-panel .inquiry-owner p { margin: 0; font-size: 14px; line-height: 1.6; }
#project-request .inquiry-contact-panel .inquiry-form {
  border-top: 1px solid var(--adaptive-line, #e1dbd0);
  margin-top: 24px;
  padding-top: 24px;
}
#project-request .inquiry-contact-panel .inquiry-form > p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
#project-request .inquiry-contact-panel .inquiry-form > p:first-child { font-size: 19px; line-height: 1.4; }
#project-request .inquiry-contact-panel .button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  margin-top: 20px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  #services > .home-service-direction-grid figcaption { min-height: 0; }
  #services > .home-service-direction-grid .home-service-direction-copy strong { min-height: 0; font-size: 25px; }
  #development .developer-service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #development .developer-service-link { padding: 22px; }
  #development .developer-service-heading strong { font-size: 22px; }
  #project-request .inquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #project-request .inquiry-contact-panel,
  #project-request form.inquiry-form { padding: 22px; }
}
@media (max-width: 700px) {
  #residential-services .service-list { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  #residential-services .service-list > .service-card { display: flex; flex-direction: column; grid-row: auto; margin: 0; padding: 0; }
  #residential-services .service-card > .service-photo { display: block; grid-row: auto; }
  #residential-services .service-card > .service-card-copy { display: block; grid-row: auto; padding: 22px 22px 0; }
  #residential-services .service-card > .service-provider-summary { grid-template-rows: none; grid-row: auto; }
  #residential-services .service-provider-summary > :nth-child(n) { grid-row: auto; }
}
