/* Shared styles for the homepage and the Neighborhood Profiles page */

:root {
  --ink: #1c1b19;
  --paper: #fbf9f5;
  --accent: #9a4a2e;
  --line: #d9d2c6;
  --soft: #f4efe7;
  --muted: #5f5b54;
  --placeholder: #dcd9d4;

  --font: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 76rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.small-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.82rem/1.2 var(--font);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Image boxes: gray until the photo file exists, then the photo covers the box */
.img {
  position: relative;
  overflow: hidden;
  background: var(--placeholder);
  aspect-ratio: 3 / 2;
}
.img__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #8a857d;
  text-align: center;
}
.img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.disclaimer { font-size: 0.78rem; color: var(--muted); }

/* ---------- Homepage ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  max-width: none; /* the name sits at the far left and the links at the far right, edge to edge */
  padding-inline: clamp(1.25rem, 3vw, 3rem);
}
.site-name { display: inline-flex; align-items: center; font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.brand-divider { width: 1px; height: 1.1em; margin-inline: 0.75rem; background: currentColor; opacity: 0.4; }
.brand-broker { font-size: 0.78em; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.site-name:hover { color: var(--ink); }
.site-header .btn { min-height: 2.4rem; padding: 0.5rem 1rem; }

/* The links sit packed together at the far right, with a little more room before Get in Touch */
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.1vw, 1rem); margin-left: auto; }
.site-nav > .btn { margin-left: 0.25rem; }

/* Resources menu: a dark panel with a right-aligned list */
.menu { position: relative; }
.menu__button {
  min-height: 2.4rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 0.95rem var(--font);
  cursor: pointer;
}
.menu__button:hover, .menu__button[aria-expanded='true'] { color: var(--accent); }
.menu__panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  z-index: 20;
  min-width: 15rem;
  padding: 1.25rem 1.75rem;
  background: var(--ink);
  text-align: right;
}
.menu__panel li + li { margin-top: 0.2rem; }
.menu__panel a {
  display: block;
  padding-block: 0.35rem;
  color: #a39d93;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.menu__panel a:hover, .menu__panel a:focus-visible { color: var(--paper); }
.nav-link { font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.menu__mobile, .menu__mobile-label { display: none; }
.menu__mobile-label svg { margin-right: 0.5rem; vertical-align: -0.1em; }

/* Below small-laptop width the header links move into one Menu button: the main pages, the resources, then Blog, About and Get in Touch, each group under a line */
@media (max-width: 62rem) {
  .header-request, .nav-link, .menu__desktop { display: none !important; }
  .menu__mobile { display: block; }
  .menu__mobile-label { display: inline; }
  .menu__resources-first, .menu__group-start { margin-top: 0.6rem !important; padding-top: 0.6rem; border-top: 1px solid #3a3833; }
}


.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.8rem, 1.6rem + 5.5vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero p {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
/* A soft band at the end of the list, offering the rest of the neighborhoods */
.areas__access { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1rem; margin-top: 1.5rem; padding: 1.4rem 1.5rem; background: var(--soft); color: var(--ink); font-size: 1.05rem; font-weight: 500; text-align: center; }
.areas__access a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.areas__access a:hover { color: var(--accent); }
.areas__password { margin-top: 0.9rem; text-align: center; font-size: 0.85rem; }
.areas__password a { color: var(--muted); }
.hero__link { font-size: 0.9rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); }
.hero__cover { margin-top: clamp(2rem, 5vw, 3.5rem); aspect-ratio: 21 / 9; }
@media (max-width: 40rem) { .hero__cover { aspect-ratio: 4 / 3; } }

.areas { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* Neighborhood Guide: a photo band behind the heading, darkened so the white text reads, with the access request under the intro */
.guide-hero { position: relative; overflow: hidden; background: #2a2926; color: var(--paper); }
.guide-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s; }
.guide-hero__img.is-shown { opacity: 1; }
.guide-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 19 17 / 0.82), rgb(20 19 17 / 0.55)); }
@media (max-width: 40rem) { .guide-hero::after { background: rgb(20 19 17 / 0.74); } } /* text runs the full width on phones */
.guide-hero__content { position: relative; z-index: 1; padding-block: clamp(4rem, 10vw, 7rem) clamp(2.75rem, 7vw, 5rem); }
/* The area tabs sit close under the photo so the neighborhoods come into view sooner */
.guide-hero + .areas { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.guide-hero .label { color: #d9a184; }
.guide-hero h1 { margin-top: 1rem; font-size: clamp(2.8rem, 1.6rem + 5.5vw, 6rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.035em; }
.guide-hero__intro { margin-top: 1.5rem; max-width: 38rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 300; color: #e7e2d9; }
.guide-hero__access { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 2rem; padding-top: 1.5rem; max-width: 38rem; border-top: 1px solid rgb(251 249 245 / 0.3); font-weight: 500; }
.guide-hero__access a { font-weight: 600; color: var(--paper); text-decoration: none; border-bottom: 1px solid currentColor; }
.guide-hero__access a:hover { color: #d9a184; }
.guide-hero__password { margin-top: 1.25rem; max-width: 38rem; }
.guide-hero__password label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc9bf; }
.guide-hero__password div { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.guide-hero__password input {
  flex: 1; min-width: 0; min-height: 2.9rem; padding: 0 1rem; border: 1px solid rgb(251 249 245 / 0.6); border-radius: 0;
  background: rgb(20 19 17 / 0.35); color: var(--paper); font: 1rem var(--font);
}
.guide-hero__password input:focus { outline: 0; border-color: var(--paper); }
.guide-hero__password .btn { flex: none; min-height: 2.9rem; }

.areas__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.areas__head h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; }
.areas__head .small-label { font-size: 0.85rem; }

.tabs {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 2rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.areas__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 2rem; margin-top: 2rem; border-bottom: 1px solid var(--line); }
.areas__bar .tabs { margin-top: 0; border-bottom: 0; }
.areas__search { font-size: 0.95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
/* On phones the four tabs fill the line, so Search Homes sits just above them on the right */
@media (max-width: 40rem) { .areas__search { order: -1; margin-left: auto; padding-bottom: 0.75rem; } }
.tab {
  flex: none;
  padding: 0.9rem 0;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: 500 clamp(1rem, 0.9rem + 0.4vw, 1.1rem) var(--font);
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }

.hood { border-bottom: 1px solid var(--line); }
.hood summary, .hood--link {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 1.5rem;
  align-items: center;
  gap: 0.3rem 2.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.hood summary::-webkit-details-marker { display: none; }
.hood__name { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.hood__tagline { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.hood__toggle { justify-self: end; }
.hood__toggle {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.hood[open] .hood__toggle { transform: rotate(45deg); color: var(--accent); }
.hood summary:hover .hood__name { color: var(--accent); }
.hood--link { color: inherit; text-decoration: none; }
.hood--link:hover { color: inherit; }
.hood--link:hover .hood__name, .hood--link:hover .hood__toggle { color: var(--accent); }
@media (max-width: 47.99rem) {
  .hood summary, .hood--link { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 0.3rem 1rem; }
  .hood__tagline { grid-column: 1; font-size: 0.92rem; }
  .hood__toggle { grid-row: 1 / span 2; grid-column: 2; }
}

.hood__body {
  display: grid;
  gap: 1.75rem 3rem;
  padding-bottom: 2.25rem;
}
@media (min-width: 48rem) {
  .hood__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.hood__facts { display: grid; gap: 1.25rem; }
.hood__facts dt { margin-bottom: 0.3rem; }
.hood__facts dd { max-width: 40rem; }
.hood__pros li { position: relative; padding-left: 1.1rem; }
.hood__pros li + li { margin-top: 0.3rem; }
.hood__pros li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.45rem; height: 1px; background: var(--accent); }

.cta {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cta .label { color: #d4a28d; }
/* One centered column, so both sides mirror each other */
.cta__grid { display: grid; justify-items: center; gap: 1.25rem; max-width: 46rem; text-align: center; }
.cta h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
  font-weight: 300;
  line-height: 1.06;
  text-wrap: balance;
  letter-spacing: -0.03em;
}
.cta__text { max-width: 38rem; margin-inline: auto; color: #c9c3b8; font-weight: 300; text-wrap: pretty; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.cta__actions .btn { min-width: 10.5rem; }
.cta__link {
  display: inline-block;
  margin-top: 1.25rem;
  color: #c9c3b8;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid #5d5850;
  padding-bottom: 0.1rem;
}
.cta__link:hover { color: #fff; border-bottom-color: currentColor; }

.btn--outline-light { background: transparent; border-color: #6d675e; color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Contact form pop-up */
/* Dark, over a darkened city photo: contact details on the left, the form on the right */
.form-dialog {
  --line: rgb(251 249 245 / 0.35);
  --muted: #cfc9bf;
  --fg: var(--paper);
  --bg: #1c1b19;
  --error: #f0b49c;
  width: min(68rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 0;
  border: 0;
  background: linear-gradient(rgb(20 19 17 / 0.84), rgb(20 19 17 / 0.84)), url('/images/contact-bg.jpg') center / cover var(--bg);
  background-attachment: local; /* the photo covers the whole form, even when it scrolls */
  color: var(--fg);
}
.form-dialog::backdrop { background: rgb(28 27 25 / 0.7); }
.form-dialog__inner { display: grid; gap: 2.5rem; padding: clamp(2.75rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) {
  .form-dialog__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
  .form-dialog__details { padding-right: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--line); }
  .form-dialog__main { padding-left: clamp(2rem, 4vw, 3.5rem); }
}
.form-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.85rem var(--font);
  cursor: pointer;
}
.form-dialog__close:hover { color: var(--fg); }
.form-dialog h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.form-dialog a { color: inherit; text-decoration-color: var(--line); }
.form-dialog a:hover { color: var(--fg); text-decoration-color: currentColor; }
.form-dialog__name { margin-top: 1.5rem; font-size: 1.15rem; font-weight: 500; }
.form-dialog__title { margin-top: 0.25rem; font-size: 0.88rem; color: var(--muted); }
.form-dialog__list { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.form-dialog__list li { display: flex; align-items: center; gap: 1rem; }
.form-dialog__list li > span { display: grid; gap: 0.2rem; min-width: 0; overflow-wrap: anywhere; }
/* Both icons sit in the same-size circle, centered against their two lines */
.form-dialog__list svg { flex: none; box-sizing: content-box; width: 1.25rem; height: 1.25rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }

/* Fields as underlines on the dark background */
.form-dialog .form__field input, .form-dialog .form__field select {
  padding-inline: 0;
  border-width: 0 0 1px;
  border-color: var(--line);
  background: transparent;
  color: var(--fg);
}
.form-dialog .form__field textarea { border-color: var(--line); background: transparent; color: var(--fg); }
.form-dialog .form__field option { background: var(--bg); color: var(--fg); }
.form-dialog .form__field :focus { outline: 0; border-color: var(--fg); box-shadow: 0 1px 0 var(--fg); }
.form-dialog .form__field textarea:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.form-dialog .form__field > span, .form-dialog .address > label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.form-dialog .form__field em { color: var(--muted); letter-spacing: 0.04em; text-transform: none; }
.form-dialog .form__error { color: var(--error); }
.form-dialog .form__group-end { border-top-color: var(--line); }
.form-dialog .btn { background: transparent; border-color: var(--fg); color: var(--fg); }
.form-dialog .btn:hover { background: var(--fg); color: var(--bg); }
/* Home valuation: the same layout, light, over a faded photo */
.form-dialog--light {
  --line: #c9c1b4;
  --muted: #5f5b54;
  --fg: var(--ink);
  --bg: var(--paper);
  --error: var(--accent);
  background: linear-gradient(rgb(251 249 245 / 0.9), rgb(251 249 245 / 0.9)), url('/images/contact-bg.jpg') center / cover var(--bg);
  background-attachment: local;
}
.form-dialog--light::backdrop { background: rgb(28 27 25 / 0.55); }
.form__check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.8rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.form__check input { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--accent); }

.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form[hidden] { display: none; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 34rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .form__row--address { grid-template-columns: 3fr 1fr; }
  .form__row--city { grid-template-columns: 2fr 1fr 1fr; }
  .form__row--three { grid-template-columns: 1fr 1fr 2fr; }
}
@media (max-width: 33.99rem) {
  .form__row--address { grid-template-columns: 2fr 1fr; }
  .form__row--city { grid-template-columns: 2fr 1fr 1.3fr; }
  .form__row--three { grid-template-columns: 1fr 1fr; }
  .form__row--three > :last-child { grid-column: 1 / -1; }
}
.form [data-company], .form [data-topic-field] { display: grid; }
.form__row:has(> [data-company][hidden]) { grid-template-columns: 1fr; }
.form [hidden] { display: none !important; }
.form__group { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__group legend { padding: 0; margin-bottom: 1rem; }
.form__group-end { margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.form__intro { margin-top: 0.75rem; color: var(--muted); }

/* Address suggestions under the address field */
.address { position: relative; }
.address__options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--accent);
  border-top: 0;
  box-shadow: 0 12px 24px rgb(28 27 25 / 0.12);
}
.address__options li { padding: 0.65rem 0.75rem; font-size: 0.92rem; font-weight: 400; line-height: 1.4; cursor: pointer; }
.address__options li + li { border-top: 1px solid var(--soft); }
.address__options li:hover, .address__options li[aria-selected='true'] { background: var(--soft); }
.form__field { display: grid; gap: 0.35rem; font-size: 0.8rem; font-weight: 500; }
.form__field em { font-style: normal; font-weight: 400; color: var(--muted); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 1rem var(--font);
}
.form__field textarea { resize: vertical; }
.form__field :focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__error { color: var(--accent); font-size: 0.9rem; }
.form__consent { font-size: 0.78rem; color: var(--muted); }
.form__consent a { color: inherit; }
.form .btn { justify-self: start; min-width: 8rem; margin-top: 0.25rem; }
.form__done { margin-top: 1.25rem; }
.form__done-title { font-size: 1.2rem; font-weight: 500; }
.form__done-text { margin-top: 0.4rem; color: var(--muted); }
.form__done .btn { margin-top: 1.5rem; }

/* Footer: brokerage, fair housing and legal links, centered */
.site-footer { padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--line); text-align: center; }
.footer { display: grid; justify-items: center; gap: 0.4rem; }
/* Social icons: small outlined circles, filled in on hover */
.socials { display: inline-flex; align-items: center; gap: 0.6rem; }
.socials a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; color: inherit; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.socials a:hover, .socials a:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.socials svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.footer__socials { margin-block: 0.4rem 0.2rem; }
.footer__socials a { width: 2.1rem; height: 2.1rem; }
.form-dialog__socials { margin-top: 1.75rem; }
.form-dialog__socials a:hover, .form-dialog__socials a:focus-visible { border-color: var(--paper); background: var(--paper); color: var(--ink); }
/* In the dark phone menu */
.menu__socials { margin-top: 0.6rem !important; padding-top: 0.9rem; border-top: 1px solid #3a3833; text-align: right; }
.menu__socials .socials a { display: inline-grid; padding: 0; border-color: #3a3833; color: #a39d93; }
.menu__socials .socials a:hover, .menu__socials .socials a:focus-visible { border-color: var(--paper); background: var(--paper); color: var(--ink); }
/* Beside the Get in Touch button under the bio */
.home-about__actions, .about-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.footer__brand { display: inline-flex; align-items: center; font-size: 0.92rem; font-weight: 600; text-decoration: none; } /* back to the top of the homepage */
.footer__line { font-size: 0.78rem; color: var(--muted); }
/* Each part of the brokerage line stays whole, so on phones it breaks between parts, never inside one */
.footer__line span { display: inline-block; }
.footer__eho { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__eho .eho { width: 24px; height: 24px; }
/* Legal links stacked in one centered column on phones; on wider screens two columns that meet at the center */
.footer__links { display: grid; justify-items: center; gap: 0.3rem; margin-top: 0.4rem; font-size: 0.76rem; }
@media (min-width: 48rem) {
  .footer__links { grid-template-columns: repeat(2, auto); justify-content: center; column-gap: 2.5rem; }
  .footer__links li:nth-child(odd) { justify-self: end; text-align: right; }
  .footer__links li:nth-child(even) { justify-self: start; text-align: left; }
}
.footer__links em { font-style: normal; color: var(--accent); }
.footer .disclaimer { max-width: 46rem; margin-top: 0.4rem; font-size: 0.7rem; }
.footer .disclaimer a { color: inherit; }

/* Legal pages */
.legal { max-width: 46rem; padding-block: clamp(3rem, 7vw, 5rem); }
.legal h1 { margin-top: 0.75rem; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.legal h2 { margin-top: 2.5rem; font-size: 1.2rem; font-weight: 500; }
.legal h3 { margin-top: 1.75rem; font-size: 1rem; font-weight: 600; }
.legal p { margin-top: 0.9rem; color: var(--muted); }

/* Commute: From and To, then the transit route map */
.commute { display: grid; gap: 1rem; }
.commute__fields { display: grid; gap: 1rem; align-items: end; }
@media (min-width: 48rem) { .commute__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
.commute .form__field input { width: 100%; min-height: 2.8rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 1rem var(--font); }
.commute .form__field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.commute .btn { min-height: 2.8rem; }
.commute__modes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.commute__modes label { cursor: pointer; }
.commute__modes input { position: absolute; opacity: 0; pointer-events: none; }
.commute__modes span { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; font-weight: 500; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.commute__modes label:hover span { border-color: var(--ink); }
.commute__modes input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.commute__modes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.commute__result { display: grid; gap: 0.75rem; }
.commute__result[hidden] { display: none; }
.commute__map { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--soft); }
@media (max-width: 40rem) { .commute__map { aspect-ratio: 4 / 5; } }
.commute__link { justify-self: start; font-size: 0.9rem; font-weight: 500; }

/* Reviews: heading and score in one row, then short quotes in even rows */
.reviews { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews__head h2 { margin-top: 0.75rem; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.reviews__score { display: flex; align-items: center; gap: 1rem; }
.reviews__number { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.stars { display: block; color: #b8860b; letter-spacing: 0.12em; font-size: 1rem; }
.reviews__count { margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.reviews__quotes { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 40rem) { .reviews__quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .reviews__quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Each card fills its row, so the names line up along the bottom */
.reviews__quotes li { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.reviews__quotes blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.reviews__who { margin-top: auto; padding-top: 1rem; font-size: 0.82rem; color: var(--muted); }
