/* Shared public-site presentation layer.
   Page-specific layouts stay in styles.css/property-refresh.css; this file
   keeps the visible site shell and core brand treatment consistent. */

:where(
  body.homepage,
  body.about-page,
  body.property-examples-page,
  body.estimator-page,
  body.legal-page,
  body.not-found-page
) {
  --public-max: 1180px;
  --public-header-height: 72px;
  font-family: "Source Sans 3", Arial, sans-serif;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) :where(h1, h2) {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) .site-header {
  min-height: var(--public-header-height);
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) .nav-wrap {
  width: min(var(--public-max), calc(100% - 48px));
  min-height: var(--public-header-height);
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) :where(.button, button.button) {
  min-height: 46px;
  border: 1px solid rgba(15, 28, 41, 0.2);
  border-radius: 8px;
  background: #182330;
  color: #f4f8fb;
  box-shadow: 0 8px 20px rgba(15, 28, 41, 0.16);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 700;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) :where(.button, button.button):hover {
  background: #1b354c;
  color: #ffffff;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) .button.secondary {
  border-color: rgba(15, 28, 41, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #182330;
  box-shadow: none;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page,
  .not-found-page
) .button.secondary:hover {
  background: #eef4f8;
  color: #182330;
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page
) :where(.footer-inner, .footer-bottom) {
  width: min(var(--public-max), calc(100% - 48px));
}

:where(
  .homepage,
  .about-page,
  .property-examples-page,
  .estimator-page,
  .legal-page
) .site-footer {
  margin-top: 0;
}

:where(.about-page, .legal-page, .not-found-page) .eyebrow {
  color: #587590;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Keep this shared layer authoritative over older page-specific selectors. */
body.homepage h1,
body.homepage h2,
body.about-page h1,
body.about-page h2,
body.property-examples-page h1,
body.property-examples-page h2,
body.estimator-page h1,
body.estimator-page h2,
body.legal-page h1,
body.legal-page h2,
body.not-found-page h1,
body.not-found-page h2 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

body.about-page .credibility-hero::after {
  display: none;
}

body.homepage .site-header,
body.about-page .site-header,
body.property-examples-page .site-header,
body.estimator-page .site-header,
body.legal-page .site-header,
body.not-found-page .site-header,
body.homepage .nav-wrap,
body.about-page .nav-wrap,
body.property-examples-page .nav-wrap,
body.estimator-page .nav-wrap,
body.legal-page .nav-wrap,
body.not-found-page .nav-wrap {
  min-height: var(--public-header-height);
}

body.homepage .nav-wrap,
body.about-page .nav-wrap,
body.property-examples-page .nav-wrap,
body.estimator-page .nav-wrap,
body.legal-page .nav-wrap,
body.not-found-page .nav-wrap,
body.homepage .container,
body.about-page .container,
body.property-examples-page .container,
body.estimator-page .container,
body.legal-page .container,
body.not-found-page .container,
body.homepage .footer-inner,
body.homepage .footer-bottom,
body.about-page .footer-inner,
body.about-page .footer-bottom,
body.property-examples-page .footer-inner,
body.property-examples-page .footer-bottom,
body.estimator-page .footer-inner,
body.estimator-page .footer-bottom,
body.legal-page .footer-inner,
body.legal-page .footer-bottom {
  width: min(var(--public-max), calc(100% - 48px));
}

body.homepage .button,
body.about-page .button,
body.property-examples-page .button,
body.estimator-page .button,
body.legal-page .button,
body.not-found-page .button {
  min-height: 46px;
  border: 1px solid rgba(15, 28, 41, 0.2);
  border-radius: 8px;
  background: #182330;
  color: #f4f8fb;
  box-shadow: 0 8px 20px rgba(15, 28, 41, 0.16);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 700;
}

body.homepage .button.secondary,
body.about-page .button.secondary,
body.property-examples-page .button.secondary,
body.estimator-page .button.secondary,
body.legal-page .button.secondary,
body.not-found-page .button.secondary {
  border-color: rgba(15, 28, 41, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #182330;
  box-shadow: none;
}

@media (max-width: 640px) {
  :where(
    body.homepage,
    body.about-page,
    body.property-examples-page,
    body.estimator-page,
    body.legal-page,
    body.not-found-page
  ) {
    --public-header-height: 64px;
  }

  :where(
    .homepage,
    .about-page,
    .property-examples-page,
    .estimator-page,
    .legal-page,
    .not-found-page
  ) .nav-wrap {
    width: min(100% - 28px, var(--public-max));
  }

  :where(
    .homepage,
    .about-page,
    .property-examples-page,
    .estimator-page,
    .legal-page
  ) :where(.footer-inner, .footer-bottom) {
    width: min(100% - 28px, var(--public-max));
  }

  body.homepage .nav-wrap,
  body.about-page .nav-wrap,
  body.property-examples-page .nav-wrap,
  body.estimator-page .nav-wrap,
  body.legal-page .nav-wrap,
  body.not-found-page .nav-wrap,
  body.homepage .container,
  body.about-page .container,
  body.property-examples-page .container,
  body.estimator-page .container,
  body.legal-page .container,
  body.not-found-page .container,
  body.homepage .footer-inner,
  body.homepage .footer-bottom,
  body.about-page .footer-inner,
  body.about-page .footer-bottom,
  body.property-examples-page .footer-inner,
  body.property-examples-page .footer-bottom,
  body.estimator-page .footer-inner,
  body.estimator-page .footer-bottom,
  body.legal-page .footer-inner,
  body.legal-page .footer-bottom {
    width: min(100% - 28px, var(--public-max));
  }
}

/* Contact page */
body.contact-page {
  --public-max: 1180px;
  --public-header-height: 72px;
  min-height: 100vh;
  background: #f4f7f9;
  color: #263746;
  font-family: "Source Sans 3", Arial, sans-serif;
}

body.contact-page .nav-wrap,
body.contact-page .container,
body.contact-page .footer-inner,
body.contact-page .footer-bottom {
  width: min(var(--public-max), calc(100% - 48px));
}

body.contact-page h1 {
  margin: 10px 0 18px;
  color: #172b3b;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-main {
  min-height: 68vh;
}

.contact-intro {
  padding: clamp(64px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(111, 147, 173, 0.2), transparent 32%),
    linear-gradient(180deg, #edf3f6 0%, #f8fafb 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(44px, 8vw, 96px);
  align-items: start;
}

.contact-copy {
  padding-top: 18px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: #526777;
  font-size: 1.15rem;
  line-height: 1.7;
}

.contact-page .eyebrow {
  margin: 0;
  color: #587590;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-expectation {
  margin-top: 36px;
  padding: 20px 22px;
  border: 1px solid rgba(63, 91, 111, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.contact-expectation strong {
  color: #172b3b;
}

.contact-expectation p {
  margin: 6px 0 0;
  color: #5d707e;
  line-height: 1.55;
}

.contact-estimator-option {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(63, 91, 111, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(27, 47, 62, 0.07);
}

.contact-estimator-option strong {
  color: #172b3b;
}

.contact-estimator-option p {
  margin: 6px 0 16px;
  color: #5d707e;
  line-height: 1.55;
}

.contact-estimator-option .button {
  min-height: 44px;
  padding: 10px 16px;
}

.contact-form-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(41, 65, 82, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(27, 47, 62, 0.12);
}

.contact-field,
.contact-field-row {
  margin-bottom: 20px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field-row .contact-field {
  margin-bottom: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 7px;
  color: #1d3344;
  font-size: 0.94rem;
  font-weight: 700;
}

.contact-optional {
  color: #71818d;
  font-size: 0.82rem;
  font-weight: 500;
}

.contact-field :where(input, select, textarea) {
  width: 100%;
  border: 1px solid #bcc9d1;
  border-radius: 8px;
  background: #fbfcfd;
  color: #172b3b;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contact-field :where(input, select) {
  min-height: 48px;
  padding: 10px 12px;
}

.contact-field textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.contact-field :where(input, select, textarea):focus {
  border-color: #587f9b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(88, 127, 155, 0.17);
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

body.contact-page .contact-submit {
  min-width: 170px;
  min-height: 48px;
  justify-content: center;
  border: 1px solid #182330;
  border-radius: 8px;
  background: #182330;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-privacy {
  margin: 15px 0 0;
  color: #536570;
  font-size: 0.86rem;
  line-height: 1.45;
}

.contact-status {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-status:not(:empty) {
  display: block;
}

.contact-status[data-state="success"] {
  border: 1px solid #a9cbb9;
  background: #edf8f1;
  color: #245e3d;
}

.contact-status[data-state="error"] {
  border: 1px solid #e0b1ae;
  background: #fff1f0;
  color: #872f2a;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-copy {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body.contact-page {
    --public-header-height: 64px;
  }

  body.contact-page .nav-wrap,
  body.contact-page .container,
  body.contact-page .footer-inner,
  body.contact-page .footer-bottom {
    width: min(100% - 28px, var(--public-max));
  }

  .contact-intro {
    padding: 48px 0 60px;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
  }

  .contact-field-row .contact-field + .contact-field {
    margin-top: 20px;
  }

  body.contact-page .contact-submit {
    width: 100%;
  }
}
