/* ============================================================
   ERNEST J. DEL REAL — Editorial Real Estate + Mortgage
   Aesthetic: Strict editorial minimalism. Helvetica + Cormorant Garamond.
   Inspiration: The Agency, Oppenheim Group, Loro Piana editorial.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-dim: #faf9f7;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #767676;
  --muted-light: #b8b8b8;
  --rule: #e4e2dd;
  --rule-strong: #1a1a1a;
  --accent: #6b5a3e; /* warm bronze for very subtle hover/accent */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .25s ease, color .25s ease;
}

a:hover { opacity: .55; }

/* ---------------- Type system ---------------- */

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow--muted { color: var(--muted); }

.body-lg {
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  letter-spacing: 0.005em;
}

.tracked {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 400;
}

/* ---------------- Logo mark (D + house) ---------------- */
.logo-mark { display: inline-block; vertical-align: middle; }
.logo-mark path,
.logo-mark rect { vector-effect: non-scaling-stroke; }

/* ---------------- Navigation ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand-text {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nav__brand-text span { display: block; }

.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__menu a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

.nav__menu a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -7px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
}

/* Dropdown */
.nav__has-dropdown { position: relative; }
.nav__has-dropdown > a::after {
  content: " +";
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.5;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg);
  border: 1px solid var(--rule);
  min-width: 240px;
  padding: 18px 0;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 200;
}

.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown li { padding: 0; }
.nav__dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__dropdown a:hover { background: var(--bg-dim); opacity: 1; }
.nav__dropdown a.active::after { display: none; }

.nav__cta {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  transition: background .25s ease, color .25s ease;
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
}

.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .nav__menu.open li { padding: 18px var(--gutter); border-top: 1px solid var(--rule); }
  .nav__toggle {
    display: block;
    background: none; border: none;
    font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
  }
  .nav__cta { display: none; }
}

/* ---------------- Container ---------------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 980px;
}

section {
  padding: clamp(60px, 9vw, 120px) 0;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 64px var(--gutter) 32px;
  font-size: 12px;
  color: var(--muted);
}

.footer__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.footer__brand-text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 16px 0 12px;
}

.footer__contact-line { display: block; color: var(--ink-soft); margin-top: 4px; font-size: 13px; }

.footer__col h6 {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------------- Buttons / CTAs ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background .3s, color .3s, transform .3s;
  font-family: var(--sans);
}

.btn:hover { background: var(--bg); color: var(--ink); opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn__arrow {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width .3s;
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 28px; }

/* ---------------- Hero (home) ---------------- */

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.hero__copy {
  padding: clamp(40px, 7vw, 100px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__headline em {
  font-style: italic;
  font-weight: 300;
}

.hero__sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  font-weight: 300;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__image {
  background: var(--bg-dim);
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) contrast(1.02);
}

.hero__caption {
  position: absolute;
  bottom: 24px; right: 24px;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bg);
  mix-blend-mode: difference;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__image { aspect-ratio: 4/5; }
}

/* ---------------- Marquee strip ---------------- */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  background: var(--bg-dim);
  overflow: hidden;
}

.strip__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.strip__track span::after { content: "·"; margin-left: 64px; color: var(--muted-light); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------- Two-column intro ---------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.two-col__label { padding-top: 8px; }

.two-col__body p { margin-bottom: 20px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.two-col__body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 4em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  font-weight: 400;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------------- Services split ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

.split__cell {
  padding: clamp(50px, 7vw, 96px) var(--gutter);
  border-right: 1px solid var(--rule);
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split__cell:last-child { border-right: none; }

.split__number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.split__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 24px 0 16px;
}

.split__desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

.split__list {
  list-style: none;
  margin-top: 32px;
  padding: 0;
}
.split__list li {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.04em;
}
.split__list li:last-child { border-bottom: 1px solid var(--rule); }
.split__list li span:last-child { color: var(--muted); font-family: var(--serif); font-style: italic; }

.split__cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split__cell { border-right: none; border-bottom: 1px solid var(--rule); min-height: auto; }
}

/* ---------------- Quote / Pull ---------------- */

.pull {
  text-align: center;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pull__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.2;
  max-width: 22ch;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

.pull__attr {
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- Numbers ---------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}

.metric {
  padding: 56px var(--gutter);
  border-right: 1px solid var(--rule);
  text-align: left;
}
.metric:last-child { border-right: none; }

.metric__num {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric__num sup {
  font-size: 0.45em;
  vertical-align: top;
  margin-left: 4px;
  font-family: var(--sans);
  font-weight: 400;
}

.metric__label {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 880px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---------------- Page header ---------------- */

.page-header {
  padding: clamp(70px, 10vw, 140px) var(--gutter) clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}

.page-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
}

.page-header__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-header__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.page-header__title em { font-style: italic; }

@media (max-width: 760px) {
  .page-header__inner { grid-template-columns: 1fr; }
}

/* ---------------- About specific ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-grid__image img {
  filter: grayscale(1) contrast(1.02);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.about-grid__body p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-credentials {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.about-credentials__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.about-credentials__row strong {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------- Services page ---------------- */

.svc-section {
  border-top: 1px solid var(--rule);
}

.svc-row {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(60px, 8vw, 110px) var(--gutter);
}

.svc-row__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

.svc-row__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.svc-row__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 36px;
}

.svc-row__list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.svc-row__list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.svc-row__list li span:first-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 760px) {
  .svc-row { grid-template-columns: 1fr; }
}

/* ---------------- Contact page ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 100px);
}

.contact-info h4 {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 32px;
  font-weight: 400;
}

.contact-info h4:first-child { margin-top: 0; }

.contact-info p,
.contact-info a {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: 0.005em;
}

.contact-info--small p { font-family: var(--sans); font-size: 14px; }

.contact-divider { height: 1px; background: var(--rule); margin: 24px 0; }

/* Form */
.form { display: grid; gap: 22px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  font-size: 16px;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color .25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.field textarea { resize: vertical; min-height: 100px; }

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form__submit {
  margin-top: 12px;
  justify-self: start;
}

.form__note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.form__ok {
  display: none;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 24px;
}
.form__ok p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
.form__ok.show { display: block; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

/* ---------------- Page transitions / reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger groups */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 320ms; }
.stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 400ms; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   ADDITIONAL PAGE STYLES (Properties, Testimonials, FAQ, Apply, Programs, BBYS)
   ============================================================ */

/* ---------------- Properties grid ---------------- */

.properties {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 4vw, 60px);
  padding-top: clamp(40px, 6vw, 80px);
}

.property {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity .3s;
}

.property:hover { opacity: 1; }
.property:hover .property__image img { transform: scale(1.03); }

.property__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-dim);
  margin-bottom: 24px;
}

.property__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
  transition: transform 1.2s ease;
}

.property__status {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.property__status--featured { color: var(--ink); }

.property__address {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}

.property__loc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.property__meta {
  display: flex;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.property__meta span strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.property__meta span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.property__price {
  font-family: var(--serif);
  font-size: 22px;
  margin-left: auto;
  font-weight: 400;
}

@media (max-width: 760px) {
  .properties { grid-template-columns: 1fr; }
}

/* ---------------- Testimonials ---------------- */

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.testimonial {
  border-top: 1px solid var(--rule);
  padding: clamp(40px, 6vw, 70px) 0;
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.testimonial:last-child { border-bottom: 1px solid var(--rule); }

.testimonial__meta { padding-top: 8px; }

.testimonial__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 8px;
}

.testimonial__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.testimonial__role {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.testimonial__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.testimonial__quote::before {
  content: "\"";
  font-family: var(--serif);
  font-size: 1.4em;
  vertical-align: -0.1em;
  margin-right: 4px;
  color: var(--muted);
}

.testimonial__quote::after {
  content: "\"";
  font-family: var(--serif);
  margin-left: 2px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .testimonial { grid-template-columns: 1fr; }
}

/* ---------------- FAQ ---------------- */

.faq {
  display: flex;
  flex-direction: column;
}

.faq__group { margin-bottom: 64px; }
.faq__group:last-child { margin-bottom: 0; }

.faq__group h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.faq__group-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.faq__item {
  border-top: 1px solid var(--rule);
}

.faq__item:last-child { border-bottom: 1px solid var(--rule); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.005em;
  font-family: var(--serif);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  font-family: var(--sans);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq__item-body {
  padding: 0 0 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 72ch;
}

/* ---------------- Apply / CTA hero ---------------- */

.apply-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: clamp(60px, 10vw, 140px) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.apply-hero__inner {
  max-width: 820px;
  margin: 0 auto;
}

.apply-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.apply-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.apply-hero__title em { font-style: italic; }

.apply-hero__sub {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.apply-hero__actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust strip below apply hero */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}

.trust-strip__cell {
  padding: 48px var(--gutter);
  border-right: 1px solid var(--rule);
  text-align: center;
}
.trust-strip__cell:last-child { border-right: none; }

.trust-strip__icon {
  display: block;
  margin: 0 auto 14px;
  color: var(--ink);
}

.trust-strip__label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.trust-strip__value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip__cell { border-right: none; border-bottom: 1px solid var(--rule); }
}

/* ---------------- Programs grid ---------------- */

.programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}

.program {
  padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.program:nth-child(2n) { border-right: none; }

.program__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.program__name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.program__name em { font-style: italic; }

.program__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 46ch;
}

.program__specs {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}

.program__specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.program__specs li span:first-child {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.program__specs li span:last-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 760px) {
  .programs { grid-template-columns: 1fr; }
  .program { border-right: none; }
}

/* ---------------- BBYS step diagram ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.step {
  padding: 40px clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; }

.step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.step__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
}

/* ---------------- Comparison table (BBYS) ---------------- */

.compare {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}

.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.compare__row > div {
  padding: 22px 24px;
  border-right: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.5;
}

.compare__row > div:last-child { border-right: none; }

.compare__row--head > div {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-dim);
  padding: 16px 24px;
}

.compare__row--head > div:first-child { background: var(--ink); color: var(--bg); }

.compare__row > div:first-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
}

.compare__row > div:nth-child(2) {
  color: var(--muted);
}

.compare__row > div:nth-child(3) {
  font-weight: 400;
  color: var(--ink);
}

@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__row > div { border-right: none; border-bottom: 1px solid var(--rule); }
  .compare__row > div:last-child { border-bottom: none; }
}

/* ============================================================
   PROGRAMS PAGE
   ============================================================ */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.program-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.program-card__label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.program-card__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.program-card__desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

.program-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--rule);
}

.program-card__list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}

.program-card__list li span:first-child {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.program-card__list li span:last-child {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.program-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
}

@media (max-width: 760px) {
  .programs-grid { grid-template-columns: 1fr; }
  .program-card { padding: 32px 24px; }
}

/* ============================================================
   BUY BEFORE YOU SELL PAGE
   ============================================================ */

.bbys-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.bbys-step {
  background: var(--bg);
  padding: 40px 28px;
}

.bbys-step__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.bbys-step__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.bbys-step__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .bbys-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .bbys-steps { grid-template-columns: 1fr; }
}

.bbys-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.bbys-benefit {
  padding: 8px 0;
}

.bbys-benefit__icon {
  margin-bottom: 24px;
  color: var(--ink);
}

.bbys-benefit__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.bbys-benefit__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .bbys-benefits { grid-template-columns: 1fr; gap: 40px; }
}

.bbys-fit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.bbys-fit__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.bbys-fit__list strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  display: block;
  margin-bottom: 10px;
  line-height: 1.2;
}

.bbys-fit__list p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.bbys-fit__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  padding-top: 4px;
}

@media (max-width: 600px) {
  .bbys-fit__list li { grid-template-columns: 1fr; gap: 12px; }
}

/* FAQ items used on BBYS and FAQ page */
.faq-list { border-top: 1px solid var(--rule); }

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  padding: 24px 40px 24px 0;
  position: relative;
  letter-spacing: -0.005em;
  transition: opacity .25s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .25s, color .25s;
  width: 24px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--ink);
}

.faq-item summary:hover { opacity: 0.6; }

.faq-item p {
  padding: 0 40px 28px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}

/* ============================================================
   NOVEMBER 2026 AUDIT FIXES
   Accessibility, compliance footer, real reviews, form consent.
   Appended to the original stylesheet; nothing above was changed.
   ============================================================ */

/* Skip link + visible keyboard focus (WCAG 2.4.1 / 2.4.7) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; opacity: 1; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn:focus-visible, .nav__cta:focus-visible { outline-offset: 4px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

main { display: block; }

/* Apply Now inside the mobile menu (the header CTA is hidden under 880px) */
.nav__mobile-cta { display: none; }
@media (max-width: 880px) {
  .nav__menu.open {
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav__menu.open .nav__mobile-cta { display: block; }
  .nav__mobile-cta a { font-weight: 500; }
  /* Services sub-links were invisible on phones (hover-only dropdown) */
  .nav__menu.open .nav__dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 6px 0 0 18px;
  }
  .nav__menu.open .nav__dropdown li { border-top: 0; padding: 10px 0; }
  .nav__menu.open .nav__dropdown a { padding: 0; }
  .nav__menu.open .nav__has-dropdown > a::after { content: none; }
}

/* Headings promoted for a correct outline; keep the original look */
.footer__heading {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 18px;
  font-family: var(--sans);
}
.faq__group .faq__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.contact-info .contact-info__heading {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 32px;
  font-weight: 400;
}
.contact-info .contact-info__heading:first-child { margin-top: 0; }

/* Buttons inside the contact column were inheriting the 22px serif link style */
.contact-info .btn {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.28em;
  font-weight: 400;
}

/* Footer licensing block */
.footer__link { text-decoration: underline; text-underline-offset: 2px; }
.eho { display: flex; align-items: center; gap: 10px; }
.eho__icon { flex-shrink: 0; color: var(--ink); }
.footer__legal {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.footer__legal p { max-width: 120ch; }
.footer__legal strong { font-weight: 500; color: var(--ink-soft); }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* Plain two-col variant (no drop cap) */
.two-col--plain .two-col__body p:first-child::first-letter {
  font-family: inherit;
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  font-weight: inherit;
}

/* Disclaimers */
.disclaimer {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 90ch;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.review-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}
.review-card__stars { font-size: 12px; letter-spacing: 0.3em; color: var(--ink); }
.review-card__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  flex: 1;
}
.review-card__meta {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.review-card__name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 4px;
}
.review-source {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rating-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.rating-summary__score {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rating-summary__score span { font-size: 0.3em; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.rating-summary__text { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-bottom: 18px; max-width: 52ch; }
@media (max-width: 880px) {
  .review-grid { grid-template-columns: 1fr; }
  .review-card { padding: 32px 24px; }
}
@media (max-width: 540px) {
  .rating-summary { grid-template-columns: 1fr; }
}

/* Contact form: consent checkbox, honeypot, error */
.field--check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
}
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.field--check label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error {
  font-size: 13px;
  line-height: 1.6;
  color: #8a1c1c;
  border-left: 2px solid #8a1c1c;
  padding-left: 12px;
}
.form__error a { text-decoration: underline; }
.form__submit[disabled] { opacity: 0.5; cursor: progress; }

/* Legal / prose pages */
.legal { max-width: 72ch; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  margin: 48px 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 20px; margin-bottom: 14px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal__date {
  font-size: 10px !important;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: 28px !important;
}

/* Name + title wordmark (no business name in use) */
.nav__brand-text span { white-space: nowrap; }
.nav__brand-text .nav__brand-sub {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 3px;
}
@media (max-width: 380px) {
  .nav__brand-text { letter-spacing: 0.3em; }
  .nav__brand-text .nav__brand-sub { letter-spacing: 0.1em; }
}
.footer__tagline {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -4px 0 14px;
}

/* Eight menu items no longer fit beside the name below ~1200px:
   use the collapsed menu up to 1099px (the original switched at 880px). */
@media (max-width: 1099px) {
  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav__menu.open li { padding: 18px var(--gutter); border-top: 1px solid var(--rule); }
  .nav__menu.open .nav__mobile-cta { display: block; }
  .nav__menu.open .nav__dropdown {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    border: 0; background: transparent; min-width: 0; padding: 6px 0 0 18px;
  }
  .nav__menu.open .nav__dropdown li { border-top: 0; padding: 10px 0; }
  .nav__menu.open .nav__dropdown a { padding: 0; }
  .nav__menu.open .nav__has-dropdown > a::after { content: none; }
  .nav__toggle {
    display: block;
    background: none; border: none;
    font-size: 11px; letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px;
    font-family: var(--sans);
    color: var(--ink);
  }
  .nav__cta { display: none; }
}
@media (min-width: 1100px) and (max-width: 1439px) {
  .nav__menu { gap: 20px; }
  .nav__menu a { letter-spacing: 0.15em; }
  .nav__cta { padding: 11px 14px; letter-spacing: 0.16em; }
}

/* Accessibility: muted text was 4.3:1 on the soft-gray sections (needs 4.5:1) */
:root { --muted: #6b6b6b; }

/* Curly quotation marks on review quotes */
.testimonial__quote::before { content: "\201C"; }
.testimonial__quote::after { content: "\201D"; }

/* Active-page dot sits beside the label in the collapsed menu */
@media (max-width: 1099px) {
  .nav__menu.open a.active::after { left: -12px; top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* MLS search (CRMLS IDX) on Home Search */
.idx-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.idx-title { font-size: clamp(32px, 4vw, 52px); margin-top: 12px; max-width: 20ch; text-wrap: balance; }
.idx-frame { border: 1px solid var(--rule); height: min(900px, 85vh); min-height: 620px; background: var(--bg-dim); }
.idx-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.idx-note { margin-top: 16px; }

/* Footer now has four columns (Practice, Resources, Licenses) */
.footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

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

/* ---------------- Blog index ---------------- */
.blog-section { padding-top: clamp(40px, 6vw, 72px); }
.blog-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-filter {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer;
}
.blog-filter:hover { border-color: var(--ink); }
.blog-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.blog-search input {
  font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule-strong); background: transparent; padding: 8px 0; width: min(280px, 100%); border-radius: 0;
}
.post-list { border-top: 1px solid var(--rule); }
.post-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--rule);
}
.post-card__cat { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink); }
.post-card__info { font-size: 12px; color: var(--muted); margin-top: 8px; }
.post-card__title { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.005em; text-wrap: balance; }
.post-card__title a:hover { opacity: 0.6; }
.post-card__excerpt { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin-top: 12px; max-width: 64ch; }
.post-card__by { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.blog-empty { padding: 32px 0; color: var(--ink-soft); }
.blog-empty a { text-decoration: underline; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------- Blog post ---------------- */
.page-header--post .page-header__title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; text-wrap: balance; }
.page-header--post .page-header__eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.post-section { padding-top: clamp(36px, 5vw, 64px); }
.post-byline { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.post { max-width: 68ch; }
.post p, .post li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.post p { margin-bottom: 18px; }
.post h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 44px 0 14px; text-wrap: balance; }
.post ul, .post ol { padding-left: 22px; margin-bottom: 18px; display: grid; gap: 8px; }
.post strong { font-weight: 500; color: var(--ink); }
.post a { text-decoration: underline; text-underline-offset: 3px; }
.post-table { overflow-x: auto; margin: 8px 0 20px; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 0; }
.post-table th { text-align: left; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-strong); }
.post-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.post-table td:last-child, .post-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.post-table th:last-child { font-family: var(--sans); font-size: 10px; color: var(--muted); }
.post-faq { margin-top: 56px; }
.post-faq__title { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.post-author {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start;
  margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.post-author img { width: 120px; height: 120px; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.post-author p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin-top: 10px; max-width: 60ch; }
.post-author strong { font-weight: 500; color: var(--ink); }
.post-author__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.post-more { margin-top: 48px; }
.post-more ul { list-style: none; margin-top: 14px; border-top: 1px solid var(--rule); }
.post-more li { border-bottom: 1px solid var(--rule); }
.post-more a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.post-more__cat { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 560px) { .post-author { grid-template-columns: 1fr; } }

/* ---------------- Header: Buy / Sell / Finance / Resources / About + phone ---------------- */
.nav__actions { display: flex; align-items: center; gap: 22px; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.14em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nav__phone svg { flex-shrink: 0; }
.nav__dropdown { min-width: 250px; }
@media (max-width: 1099px) {
  .nav__actions { gap: 4px; }
  .nav__phone { padding: 8px; }
  .nav__phone span { display: none; }
}

/* Simple bulleted lists inside two-column sections */
.plain-list { padding-left: 20px; display: grid; gap: 10px; margin-bottom: 20px; }
.plain-list li { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.plain-list strong { font-weight: 500; color: var(--ink); }
.plain-list a, .two-col__body a:not(.split__cta):not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

/* Phones: put Get Pre-Approved first in the open menu, styled as the primary action */
.nav__menu.open .nav__mobile-cta { order: -1; border-top: 0; }
.nav__menu.open .nav__mobile-cta a {
  display: block; text-align: center; padding: 14px 18px;
  background: var(--ink); color: var(--bg); letter-spacing: 0.24em;
}

/* Get Pre-Approved stays in the top bar at every width */
@media (max-width: 1199px) {
  .nav__cta { display: inline-block; padding: 10px 14px; letter-spacing: 0.16em; white-space: nowrap; }
  .nav__menu.open .nav__mobile-cta { display: none; }
}
/* Phones: name + call + menu on one line, Get Pre-Approved as a full-width line under it */
@media (max-width: 599px) {
  .nav__inner { flex-wrap: wrap; row-gap: 10px; }
  .nav__actions { display: contents; }
  .nav__brand { margin-right: auto; }
  .nav__phone { order: 1; }
  .nav__toggle { order: 2; }
  .nav__cta { order: 3; flex-basis: 100%; text-align: center; padding: 11px 14px; }
}
/* Header Get Pre-Approved is the primary action: solid */
.nav__cta { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav__cta:hover { background: var(--bg); color: var(--ink); opacity: 1; }
/* Footer: brand + Buy & Sell + Finance + Resources + Licenses on one row */
.footer__grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- The full top line on laptops and tablets ---------- */
/* 900–1099px: name, all five menus, phone and Get Pre-Approved on one line */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__menu { display: flex; gap: 16px; }
  .nav__menu a { font-size: 10.5px; letter-spacing: 0.12em; }
  .nav__brand-text .nav__brand-sub { display: none; }
  .nav__brand-text { letter-spacing: 0.26em; }
  .nav__toggle { display: none; }
  .nav__actions { gap: 10px; }
  .nav__cta { padding: 10px 12px; letter-spacing: 0.12em; font-size: 10px; }
}
/* 600–899px: name, phone, Get Pre-Approved and Menu, with the five menus in a row underneath */
@media (min-width: 600px) and (max-width: 899px) {
  .nav__inner { flex-wrap: wrap; }
  .nav__actions { order: 2; }
  .nav__menu:not(.open) {
    display: flex; order: 3; flex-basis: 100%; justify-content: space-between; gap: 12px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  }
  .nav__menu:not(.open) .nav__mobile-cta { display: none; }
  .nav__menu:not(.open) a { letter-spacing: 0.16em; }
}

/* Tablet menu row: keep the first and last dropdowns on screen */
@media (min-width: 600px) and (max-width: 899px) {
  .nav__menu:not(.open) .nav__dropdown { top: calc(100% + 12px); transform: translateY(-4px); }
  .nav__menu:not(.open) .nav__has-dropdown:hover .nav__dropdown,
  .nav__menu:not(.open) .nav__has-dropdown:focus-within .nav__dropdown { transform: translateY(0); }
  .nav__menu:not(.open) > li:nth-child(-n+3) .nav__dropdown { left: 0; right: auto; }
  .nav__menu:not(.open) > li:nth-last-child(-n+3) .nav__dropdown { left: auto; right: 0; }
}
/* Show the phone number itself wherever it fits */
@media (min-width: 680px) and (max-width: 899px) {
  .nav__phone span { display: inline; }
  .nav__phone { padding: 8px 6px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .nav__phone span { display: inline; }
  .nav__phone { padding: 8px 2px; gap: 6px; }
  .nav__menu { gap: 13px; }
  .nav__brand-text { letter-spacing: 0.2em; }
}

/* Side-by-side comparison tables (Buy Before You Sell, Cash Offer) */
.compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.compare-table thead th { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--rule-strong); padding-top: 0; }
.compare-table tbody th { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--ink); width: 20%; }
.compare-table td { color: var(--ink-soft); }
.compare-table--two table { min-width: 520px; }
.compare-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Bridge loan section */
.bridge-steps { list-style: none; counter-reset: bridge; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.bridge-steps li { counter-increment: bridge; display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.bridge-steps li::before { content: counter(bridge, decimal-leading-zero); font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--ink); }
.bridge-steps strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.bridge-steps p { margin: 0; color: var(--ink-soft); }

/* Cash offer page */
.offer-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.offer-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.offer-points li::before { content: ""; width: 14px; height: 8px; margin-top: 7px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.offer-form-card { border: 1px solid var(--rule-strong); padding: clamp(24px, 4vw, 44px); background: var(--bg); scroll-margin-top: 140px; }
.offer-form-card .form__lede { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 0 0 8px; }
.offer-form-card .form__sub { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.field--row-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .field--row-3 { grid-template-columns: 1fr; } }
/* Phones: comparison tables stack into one card per row */
@media (max-width: 640px) {
  .compare-table table, .compare-table--two table { min-width: 0; }
  .compare-table table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-table tbody tr { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
  .compare-table tbody th { border: 0; padding: 0 0 10px; width: auto; }
  .compare-table td { border: 0; padding: 6px 0; display: block; }
  .compare-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
  .compare-table--single td::before { display: none; }
}
/* Reveal lists longer than six items (the base stylesheet stops at six) */
.stagger.in > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 480ms; }

/* ---------- Dropdown menus you can actually reach and click ---------- */
/* Invisible bridge across the gap between a label and its menu, so the pointer doesn't drop it */
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 19px; }
/* Opened by click, tap, keyboard or (with a short grace period) hover — see script.js */
.nav__has-dropdown.is-open .nav__dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__has-dropdown > a { cursor: pointer; }
/* With the script running, focus alone no longer pins a menu open */
.nav__menu.js-dd:not(.open) .nav__has-dropdown:not(.is-open):not(:hover) .nav__dropdown { opacity: 0; pointer-events: none; }
/* Touch screens: open on tap only (a tap leaves a sticky :hover behind) */
@media (hover: none) {
  .nav__menu.js-dd:not(.open) .nav__has-dropdown:not(.is-open) .nav__dropdown { opacity: 0; pointer-events: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .nav__menu:not(.open) .nav__has-dropdown.is-open .nav__dropdown { transform: translateY(0); }
  .nav__menu:not(.open) .nav__dropdown::before { height: 13px; }
}

/* ================= v9: SEO headings, footer extras, lead capture ================= */
/* The small labels are now the pages' H1s: keep them looking exactly like labels */
h1.page-header__eyebrow, h1.hero__eyebrow, h1.apply-hero__eyebrow {
  font-family: var(--sans); font-weight: 400; line-height: 1.6; margin-top: 0;
}
h1.page-header__eyebrow, h1.hero__eyebrow { margin-bottom: 0; }
p.page-header__title, p.hero__headline, p.apply-hero__title { margin: 0; }
.hero__image picture { display: block; width: 100%; height: 100%; }

/* Footer: areas served + newsletter */
.footer__extra {
  max-width: var(--max-w); margin: 0 auto; padding-top: 36px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
}
.footer__areas ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-soft); }
.footer__areas a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.footer__news p { margin: 10px 0 14px; font-size: 13px; color: var(--ink-soft); max-width: 42ch; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input[type="email"] {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 14px; padding: 11px 12px;
  border: 1px solid var(--rule-strong); background: var(--bg); color: var(--ink); border-radius: 0;
}
.news-form input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.news-form__btn {
  font: inherit; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 11px 18px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink); cursor: pointer;
}
.news-form__btn:hover { background: var(--bg); color: var(--ink); }
.news-form .form__error { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--ink); }
.footer__news .form__ok { padding: 12px 0; }
.footer__news .form__ok p { font-size: 18px; margin: 0; }
.footer__social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__social a { color: var(--ink); }
@media (max-width: 760px) { .footer__extra { grid-template-columns: 1fr; } }

/* Short reviews next to forms */
.mini-reviews { display: grid; gap: 18px; }
.mini-reviews figure { margin: 0; padding-left: 16px; border-left: 1px solid var(--ink); }
.mini-reviews blockquote { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--ink); }
.mini-reviews figcaption { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* Latest guides on the home page */
.latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.latest__card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 30px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.latest__card + .latest__card { padding-left: 24px; border-left: 1px solid var(--rule); }
.latest__cat { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.latest__title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; text-wrap: balance; }
.latest__more { margin-top: auto; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.latest__card:hover .latest__title { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .latest__grid { grid-template-columns: 1fr; }
  .latest__card, .latest__card + .latest__card { padding: 22px 0; border-left: 0; }
}

/* Related guides */
.related__list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--ink); }
.related__list li { border-bottom: 1px solid var(--rule); }
.related__list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); }
.related__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Calculator: "send me a copy" */
.estimate-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.estimate-box__lede { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.estimate-box__sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; max-width: 52ch; }
.news-form input[type="text"] {
  flex: 1 1 140px; min-width: 0; font: inherit; font-size: 14px; padding: 11px 12px;
  border: 1px solid var(--rule-strong); background: var(--bg); color: var(--ink); border-radius: 0;
}
.news-form input[type="text"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.estimate-box .form__ok p { font-size: 18px; margin: 0; }
/* Blog: text tables and contents box */
.post-table--text td:last-child, .post-table--text th:last-child { text-align: left; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); font-variant-numeric: normal; }
.post-table--text th:last-child { font-size: 10px; color: var(--muted); }
.post-table--text table { min-width: 560px; }
.post-toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 18px 0 14px; margin: 8px 0 32px; }
.post-toc__title { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.post-toc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.post h2[id] { scroll-margin-top: 110px; }
/* Seminar: date and place */
.seminar-when { margin: 24px 0 8px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.seminar-when p { margin: 0; color: var(--ink-soft); }
.seminar-when__list { margin: 0; display: grid; gap: 10px; }
.seminar-when__list div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.seminar-when__list dt { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.seminar-when__list dd { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--ink); }

.offer-points + p { margin-top: 22px; }
/* Footer: areas by region */
.footer__regions { flex-direction: column; flex-wrap: nowrap !important; gap: 8px !important; }
.footer__regions li { line-height: 1.6; }
.footer__region { display: inline-block; min-width: 0; margin-right: 8px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.footer__all-areas { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* City buyer guide download */
.guide-card { margin-top: 28px; }
.guide-card .form__ok p { font-size: 18px; margin: 0 0 16px; }
.guide-card .form__ok .btn { margin-top: 4px; }
.guide-card .form__ok p:first-child::first-letter { font-family: inherit; font-size: inherit; float: none; line-height: inherit; padding: 0; font-weight: inherit; }
.guide-card .form__ok .btn { font-style: normal; font-family: var(--sans); }
/* A sent form hides itself; keep that working for grid and flex forms */
form[hidden] { display: none !important; }

/* Open phone/tablet menu: fill exactly the space under the header so the last links can always be reached */
@media (max-width: 1099px) {
  .nav__menu.open {
    max-height: calc(100vh - var(--menu-top, 70px));
    max-height: calc(100dvh - var(--menu-top, 70px));
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
/* Inside the open phone/tablet menu every section is already listed in place:
   tapping a section name must not shift its links (the desktop centring transform)
   and the desktop hover bridge must not sit over the section name. */
@media (max-width: 1099px) {
  .nav__menu.open .nav__has-dropdown .nav__dropdown,
  .nav__menu.open .nav__has-dropdown.is-open .nav__dropdown { transform: none; left: auto; right: auto; }
  .nav__menu.open .nav__dropdown::before { content: none; }
}

/* v14: local guide links at the end of blog posts */
.post .post-local { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 16px; }

/* v14: call/text bar on phones (the calculator page has its own payment bar) */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,0.18);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 12px;
    color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .callbar a + a { border-left: 1px solid rgba(255,255,255,0.25); }
  .callbar a:active { background: rgba(255,255,255,0.12); }
  .callbar a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
  body:has(.callbar) { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  body:has(.nav__menu.open) .callbar { display: none; }
}

/* v14: free guides page */
.guide-pick { border: 0; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.guide-pick legend { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.guide-pick label { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; min-height: 32px; }
.guide-pick input { width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; }
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; justify-items: start; }
.program-card { scroll-margin-top: 140px; }

/* v14: legal text at a legible 12px minimum */
.disclaimer, .footer__legal { font-size: 12px; line-height: 1.6; }

/* ---------------- Home: one advisor, the home and the loan (v15) ---------------- */
.dual { border-top: 1px solid var(--rule); }
.dual__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.dual__title { font-size: clamp(42px, 6vw, 88px); margin-top: 18px; max-width: 12ch; text-wrap: balance; }
.dual__title em { font-style: italic; color: var(--accent); }
.dual__intro p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; }
.dual__intro p + p { margin-top: 16px; }
.dual__intro .dual__lede { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 27px); line-height: 1.35; color: var(--ink); font-weight: 400; }

.tracks { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule-strong); }
.tracks__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(0, 1fr); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.tracks__head span { display: flex; align-items: center; gap: 12px; }
.tracks__head span:first-child { justify-content: flex-end; padding-right: clamp(12px, 2vw, 32px); color: var(--ink); }
.tracks__head span:last-child { padding-left: clamp(12px, 2vw, 32px); color: var(--ink); }
.tracks__head svg { color: var(--accent); flex: none; }
.tracks__head span:nth-child(2) { justify-content: center; color: var(--muted); }
.tracks__list { list-style: none; margin: 0; padding: 0; position: relative; }
.tracks__list::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); }
.track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(0, 1fr); grid-template-areas: "home stage loan"; align-items: center; padding: clamp(26px, 2.8vw, 38px) 0; border-bottom: 1px solid var(--rule); transition: background .3s ease; }
.track:hover { background: var(--bg-dim); }
.track:hover .track__stage h3 { background: var(--bg-dim); }
.track__stage { grid-area: stage; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.track__num { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%; background: var(--bg); font-family: var(--serif); font-style: italic; font-size: 19px; transition: background .3s ease, color .3s ease; }
.track:hover .track__num { background: var(--ink); color: var(--bg); }
.track__stage h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; background: var(--bg); padding: 2px 8px; }
.track__side p { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.55vw, 22px); line-height: 1.38; color: var(--ink); max-width: 28ch; }
.track__side--home { grid-area: home; padding-right: clamp(12px, 2vw, 32px); }
.track__side--home p { margin-left: auto; text-align: right; }
.track__side--loan { grid-area: loan; padding-left: clamp(12px, 2vw, 32px); }
.track__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dual__proof { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); row-gap: 28px; }
.dual__proof-label { grid-column: 1 / -1; }
.proof { border-top: 1px solid var(--rule-strong); padding-top: 26px; }
.proof__big { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.01em; }
.proof__big sup { font-size: 0.45em; vertical-align: top; font-family: var(--sans); font-weight: 400; margin-right: 6px; }
.proof p { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 36ch; }

.dual__foot { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.dual__note { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.35; max-width: 36ch; }
.dual__actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .dual__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dual__proof { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tracks__head { display: none; }
  .tracks__list::before { left: 27px; }
  .track { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "home" "loan"; align-items: start; row-gap: 14px; padding: 26px 0; }
  .track__stage { flex-direction: row; align-items: center; gap: 16px; text-align: left; }
  .track__stage h3 { padding: 0; }
  .track__side, .track__side--home, .track__side--loan { padding: 0 0 0 72px; }
  .track__side--home p { margin-left: 0; text-align: left; }
  .track__side p { font-size: 19px; }
  .track:hover { background: none; }
  .track:hover .track__stage h3 { background: var(--bg); }
  .track__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
  .dual__actions .btn { flex: 1 1 220px; justify-content: center; }
}

/* Hero: lead line (v15) */
section.hero { padding: 0; }
.hero__sub { max-width: 520px; }
.hero__lead { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.hero__headline { font-size: clamp(44px, 4.8vw, 72px); text-wrap: balance; }
.hero__copy { gap: 28px; }

/* Numeric comparison tables in posts (v16) */
.post-table--nums td:not(:first-child), .post-table--nums th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.post-table--nums td:last-child { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.post-table--nums td strong { font-weight: 500; color: var(--ink); }

/* v17: "Your guides are ready" page (where guide forms land if the page script can't run) */
.guides-ready .two-col + .two-col { margin-top: 56px; }
.city-guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.city-guide-links li { scroll-margin-top: 140px; min-width: 0; }
.guides-ready .city-guide-links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 15px; }
.city-guide-links a:hover, .city-guide-links a:focus-visible { border-bottom-color: var(--ink); }
.city-guide-links li:target { grid-column: 1 / -1; order: -1; margin-bottom: 14px; }
.city-guide-links li:target a { display: inline-block; padding: 14px 22px; background: var(--ink); color: var(--bg, #fff); border: 0; font-weight: 500; }
.guides-ready__more { margin: 56px 0 0; font-size: 14px; color: var(--muted); }
.guides-ready__more a { color: var(--ink); text-decoration: underline; }
