/* Harmony Properties — Version 20 refinement layer.
 * This file consolidates the new type, spacing and component decisions without
 * adding another conflicting rule set to the legacy stylesheet. */

:root {
  --hp-v20-ink: #171c22;
  --hp-v20-copy: #252b31;
  --hp-v20-muted: #4f5b66;
  --hp-v20-pale: #eef2f4;
  --hp-v20-line: #cfd8de;
  --hp-v20-field: #fbfcfc;
  --hp-v20-space-section: clamp(50px, 6vw, 76px);
  --hp-v20-space-compact: clamp(34px, 4vw, 52px);
}

body {
  color: var(--hp-v20-ink);
}

main p,
main li,
main dd,
.section-heading p,
.listing-card p,
.area-discovery p,
.article-content,
.article-content p,
.article-body,
.article-body p {
  color: var(--hp-v20-copy);
}

/* Reduce the former oversized display scale to 75%, then preserve a clear
   hierarchy beneath it. */
h1,
.article-header h1,
.section-heading--listing h1,
.property-title h1,
.page-hero h1,
.contact-hero h1,
.questionnaire-hero h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.hero-split h1 {
  font-size: clamp(2.15rem, 3.65vw, 3rem);
  line-height: 1.06;
}

h2,
.section-heading h2,
.section-heading--compact h2,
.map-band h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.14;
  letter-spacing: -.018em;
}

h3 {
  font-size: clamp(1.18rem, 1.65vw, 1.5rem);
  line-height: 1.25;
}

.section {
  padding-block: var(--hp-v20-space-section);
}

.section--compact {
  padding-block: var(--hp-v20-space-compact);
}

.section-heading {
  margin-bottom: clamp(24px, 3vw, 34px);
}

/* Homepage area guides: editorial cards without misleading or uneven images. */
.area-discovery__grid > a {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 36px);
  background: #fff;
}

.area-discovery__grid > a > :not(.area-discovery__image) {
  margin-inline: 0;
}

.area-discovery__grid > a .area-discovery__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin: 0 0 28px;
  color: var(--navy);
  border: 1px solid var(--hp-v20-line);
  border-radius: 50%;
}

.area-discovery__grid > a .area-discovery__icon svg {
  width: 24px;
  height: 24px;
}

.area-discovery__grid > a h3 {
  margin: 0 0 12px;
}

.area-discovery__grid > a p {
  margin: 0 0 26px;
}

.area-discovery__grid > a .text-link {
  margin: auto 0 0;
}

/* A compact four-step comparison path with no faux timeline. */
.guidance-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--hp-v20-line);
  border: 1px solid var(--hp-v20-line);
  counter-reset: guidance-step;
}

.guidance-path li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  min-height: 148px;
  padding: 22px;
  background: #fff;
  border: 0;
}

.guidance-path li::before {
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--navy);
}

.guidance-path h3 {
  margin: 2px 0 7px;
}

.guidance-path p {
  line-height: 1.5;
}

/* Listing pages should introduce the inventory, not a wall of controls. */
.listing-page-header {
  padding-top: clamp(30px, 3vw, 42px);
  padding-bottom: var(--hp-v20-space-compact);
}

.listing-page-header .section-heading--listing {
  margin-bottom: 20px;
}

.filters {
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  min-height: 44px;
  padding: 9px 17px;
}

.desktop-filter-panel {
  margin-bottom: 24px;
}

.listing-controls {
  padding: 16px;
}

.listing-controls select,
.listing-controls input,
.filters-panel select,
.filters-panel input,
.listing-filter-panel select,
.listing-filter-panel input {
  min-height: 46px;
  background: var(--hp-v20-field);
}

.active-filter-chips {
  margin-bottom: 18px;
}

/* A deliberately calmer, narrower questionnaire. */
.questionnaire-hero {
  padding-block: clamp(42px, 5vw, 64px);
}

.questionnaire-hero__inner {
  max-width: 800px;
}

.questionnaire-layout {
  max-width: 980px;
}

.questionnaire-panel {
  padding: clamp(26px, 4vw, 44px);
  border-color: var(--hp-v20-line);
}

.questionnaire-progress {
  height: 5px;
  margin-bottom: 8px;
}

.questionnaire-progress__text {
  margin: 0 0 28px;
  font-size: .82rem;
}

.questionnaire-form legend {
  margin-bottom: 26px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.questionnaire-grid {
  gap: 22px;
}

.questionnaire-form input:not([type="checkbox"]):not([type="radio"]),
.questionnaire-form select,
.questionnaire-form textarea {
  min-height: 48px;
  padding: 10px 13px;
  background: var(--hp-v20-field);
  border: 1px solid #b9c6cf;
  border-radius: 6px;
}

.questionnaire-form textarea {
  min-height: 112px;
}

.choice-grid,
.choice-grid--three,
.choice-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: transparent;
}

.choice-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--hp-v20-field);
  border: 1px solid #b9c6cf;
  border-radius: 6px;
  cursor: pointer;
}

.choice-grid input {
  position: static;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 0;
  opacity: 1;
  accent-color: var(--navy);
}

.choice-grid input[type="checkbox"] {
  border-radius: 3px;
}

.choice-grid input[type="radio"] {
  border-radius: 50%;
}

.choice-grid span {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.choice-grid label:has(input:checked) {
  background: #f2f6f8;
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.choice-grid input:checked + span {
  color: var(--navy);
  background: transparent;
}

.questionnaire-actions {
  gap: 12px;
  margin-top: 30px;
}

.questionnaire-actions .button {
  min-width: 160px;
  min-height: 48px;
}

/* Footer: larger readable type, but much tighter vertical rhythm. */
.site-footer .footer-main {
  gap: clamp(24px, 3vw, 40px);
  padding: 34px 0 18px;
}

.site-footer .footer-brand p,
.site-footer .footer-links a,
.site-footer .footer-contact__details a,
.site-footer .footer-contact__address a,
.site-footer .footer-legal__links a {
  font-size: 1.25rem;
  line-height: 1.18;
}

.site-footer .footer-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.16;
}

.site-footer .footer-links {
  row-gap: 0;
}

.site-footer .footer-links a,
.site-footer .footer-contact__details a {
  min-height: 38px;
  padding-block: 3px;
}

.site-footer .footer-contact__details {
  gap: 2px;
}

.site-footer .footer-contact__address {
  margin-top: 8px;
}

.site-footer .footer-legal {
  padding-block: 8px 4px;
}

.site-footer .footer-bottom {
  padding-block: 6px 11px;
}

@media (max-width: 900px) {
  .guidance-path {
    grid-template-columns: 1fr;
  }

  .guidance-path li {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --hp-v20-space-section: 46px;
    --hp-v20-space-compact: 34px;
  }

  h1,
  .article-header h1,
  .section-heading--listing h1,
  .property-title h1,
  .page-hero h1,
  .contact-hero h1,
  .questionnaire-hero h1 {
    font-size: clamp(1.8rem, 8.3vw, 2.05rem);
  }

  .hero-split h1 {
    font-size: clamp(1.9rem, 9vw, 2.2rem);
  }

  h2,
  .section-heading h2,
  .section-heading--compact h2,
  .map-band h2 {
    font-size: clamp(1.48rem, 7vw, 1.82rem);
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero-proof {
    font-size: .98rem;
    line-height: 1.45;
  }

  .area-discovery__grid > a {
    min-height: 230px;
    padding: 24px;
  }

  .guidance-path li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .listing-page-header {
    padding-top: 26px;
    padding-bottom: 38px;
  }

  .mobile-filter-panel > summary {
    min-height: 48px;
    padding: 12px 16px;
    background: var(--hp-v20-field);
  }

  .questionnaire-hero {
    padding-block: 36px;
  }

  .questionnaire-panel {
    padding: 22px 18px;
  }

  .questionnaire-grid,
  .choice-grid,
  .choice-grid--three,
  .choice-grid--four {
    grid-template-columns: 1fr;
  }

  .choice-grid label {
    min-height: 48px;
  }

  .questionnaire-actions {
    align-items: stretch;
  }

  .questionnaire-actions .button {
    width: auto;
    flex: 1;
  }

  .site-footer .footer-main {
    gap: 16px;
    padding: 26px 0 14px;
  }

  .site-footer .footer-brand img {
    width: 116px;
  }

  .site-footer .footer-brand p,
  .site-footer .footer-links a,
  .site-footer .footer-contact__details a,
  .site-footer .footer-contact__address a,
  .site-footer .footer-legal__links a {
    font-size: 1.25rem;
    line-height: 1.18;
  }

  .site-footer .footer-title {
    font-size: 1.25rem;
  }

  .site-footer .footer-links {
    row-gap: 1px;
  }

  .site-footer .footer-legal__links {
    gap: 2px 18px;
  }
}
