/* Ridge Residential inquiry modal — isolated from approved site layout. */
.contact-dialog {
  width: min(700px, calc(100vw - 32px));
  max-width: 700px;
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid #d6dccb;
  background: #f8f7f1;
  color: #333c31;
  box-shadow: 0 24px 90px #16231d4d;
}
.contact-dialog::backdrop { background: #121d16a8; backdrop-filter: blur(4px); }
.contact-dialog-content { padding: clamp(27px, 5vw, 49px); }
.contact-dialog .dialog-close {
  position: sticky; top: 12px; float: right; right: 12px;
  width: 39px; height: 39px; margin: 12px 12px -51px 0;
  z-index: 2; display: grid; place-items: center; background: #e7ebde;
  color: var(--forest); font-size: 23px; line-height: 1; border-radius: 50%;
}
.contact-dialog .dialog-close:hover { background: #dce3d1; }
.contact-dialog .eyebrow { color: #68795b; }
.contact-dialog h2 { max-width: 570px; margin: 14px 45px 12px 0; font-size: clamp(36px, 5vw, 55px); line-height: 1.06; }
.contact-dialog h2 em { color: #6a7a57; }
.contact-intro { max-width: 550px; font-size: 13px; line-height: 1.8; color: #596653; margin-bottom: 26px; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 18px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.contact-field.full { grid-column: 1 / -1; }
.contact-field label { font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.contact-field label .optional { font-weight: 400; color: #6a7763; }
.contact-field input,.contact-field select,.contact-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 45px;
  padding: 11px 13px; border: 1px solid #c9d1c1; border-radius: 2px;
  background: #fff; color: #343e34; font: 13px/1.45 var(--sans);
}
.contact-field textarea { min-height: 94px; resize: vertical; }
.contact-field input:focus-visible,.contact-field select:focus-visible,.contact-field textarea:focus-visible {
  outline: 2px solid #768c68; outline-offset: 1px; border-color: #728661;
}
.contact-field input::placeholder,.contact-field textarea::placeholder { color: #838d7e; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 23px; }
.contact-actions .button { justify-content: center; gap: 19px; }
.contact-copy { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.contact-copy:hover { color: #5b7653; }
.contact-note { font-size: 11px; line-height: 1.7; color: #636f60; margin-top: 17px; }
.contact-status { margin: 13px 0 0; font-size: 12px; line-height: 1.65; color: #394d35; }
.mobile-menu .mobile-management-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 25px; text-align: left; }
.mobile-menu .mobile-management-link span { font: 18px var(--sans); }
.management-contact-link { display: inline-flex; align-items: center; margin: 18px 0 0 14px; vertical-align: middle; }
.site-footer .footer-bottom .footer-management-link { font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:600px) {
  .contact-dialog { width: calc(100vw - 18px); max-height: 94dvh; }
  .contact-dialog-content { padding: 29px 20px 26px; }
  .contact-dialog h2 { font-size: 37px; }
  .contact-grid { grid-template-columns: 1fr; gap: 13px; }
  .contact-field.full { grid-column: auto; }
  .contact-actions .button { width: 100%; }
  .contact-copy { padding: 6px 0; }
  .management-contact-link { display: flex; width: fit-content; margin: 13px 0 0; }
}
@media(prefers-reduced-motion:reduce) { .contact-dialog::backdrop { backdrop-filter: none; } }
@media print { .contact-dialog { display: none!important; } }


/* Homepage: a visible inquiry panel in the open right side of the hero.
   This does not alter the existing hero image or brand layout. */
.hero-with-inquiry .hero-content {
  margin-left: 0;
  max-width: min(900px, calc(100% - 520px));
  position: relative;
  z-index: 1;
  padding-right: 0;
}
.hero-with-inquiry .hero-description { max-width: 610px; }
.hero-inquiry {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: clamp(38px, 5vh, 62px);
  width: clamp(430px, 32vw, 545px);
  max-height: none;
  overflow: visible;
  padding: clamp(20px, 1.85vw, 27px);
  color: #354032;
  background: rgba(248, 247, 241, .97);
  border: 1px solid rgba(230,235,224,.8);
  box-shadow: 0 20px 65px rgba(7,20,12,.33);
  border-radius: 18px;
  text-align: left;
}
.hero-inquiry .eyebrow { color: #69785f; font-size: 9px; letter-spacing: .15em; }
.hero-inquiry h2 { font: 400 clamp(29px, 2.2vw, 36px)/1.1 var(--serif); letter-spacing: -.045em; margin: 7px 0 5px; }
.hero-inquiry h2 em { font-weight: 400; color: #748166; }
.hero-inquiry-intro { font-size: 12px; line-height: 1.5; color: #586753; margin-bottom: 12px; }
.hero-inquiry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 12px; }
.hero-inquiry .contact-field { gap: 4px; }
.hero-inquiry .contact-field label { font-size: 10px; }
.hero-inquiry .contact-field input,
.hero-inquiry .contact-field select,
.hero-inquiry .contact-field textarea {
  min-height: 37px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.hero-inquiry .contact-field textarea { min-height: 47px; }
.hero-inquiry-submit {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  gap: 15px; margin-top: 12px; padding: 11px 15px;
  background: #4f5c40; color: #fff; font-size: 12px;
  font-weight: 700; letter-spacing: .02em; border-radius: 10px;
}
.hero-inquiry-submit:hover { background: #667852; }
.hero-inquiry-submit span { font-size: 18px; line-height: 1; }
.hero-inquiry-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hero-inquiry-foot span { font-size: 9px; line-height: 1.4; color: #667360; }
.hero-inquiry-foot button { font-size: 10px; color: #445c38; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hero-inquiry-status { margin-top: 12px; font-size: 11px; color: #36512e; line-height: 1.5; }
@media(max-width:1300px) {
  .hero-with-inquiry { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; padding-bottom: 105px; }
  .hero-with-inquiry .hero-content {
    flex: 0 0 auto; margin: 0; max-width: 100%; width: 100%;
    min-height: 510px; padding: clamp(70px, 8vh, 110px) var(--gutter) 75px;
  }
  .hero-with-inquiry .hero-content h1 { max-width: 750px; }
  .hero-with-inquiry .hero-inquiry {
    position: relative; top: auto; right: auto;
    flex: 0 0 auto; width: min(620px, calc(100% - 2 * var(--gutter)));
    max-height: none; margin: 0 var(--gutter); overflow: visible;
    padding: 27px; border-radius: 18px; box-shadow: 0 15px 45px rgba(7,20,12,.24);
  }
  .hero-with-inquiry .hero-bottom { bottom: 30px; }
}
@media(max-width:600px) {
  .hero-with-inquiry { padding-bottom: 100px; }
  .hero-with-inquiry .hero-content {
    min-height: 0;
    padding: 83px var(--gutter) 56px;
  }
  .hero-with-inquiry .hero-inquiry { padding: 25px 20px; width: calc(100% - 2 * var(--gutter)); border-radius: 16px; }
  .hero-inquiry h2 { font-size: 34px; }
  .hero-inquiry-fields { grid-template-columns: 1fr; gap: 11px; }
  .hero-inquiry .contact-field.full { grid-column: auto; }
  .hero-inquiry-foot { align-items: flex-start; }
}
@media print { .hero-inquiry { display: none!important; } }

/* Branded direct-contact email links; keep the approved layout intact. */
.site-footer .footer-bottom .footer-contact-email {
  font-size: 11px;
  font-weight: 700;
  color: #40533c;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .footer-bottom .footer-contact-email:hover,
.contact-note a:hover,
.management-email-line a:hover,
.inline-contact-email:hover { color: #647d52; }
.management-email-line { font-size: 12px; color: #596653; margin: 10px 0 0; }
.management-email-line a,
.inline-contact-email,
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }
.contact-note a { font-weight: 700; color: #405c39; overflow-wrap: anywhere; }
@media(max-width:600px) {
  .site-footer .footer-bottom .footer-contact-email { font-size: 11px; flex-basis: 100%; }
}
