/* dn-home-2026.css — the home page of the approved 2026 redesign (Main.dc.html + Home-Phone.dc.html, owner 2026-10-10).
   Markup is written by scripts/site/build-home-redesign.py (CRM API repo); listings and search are driven by js/dn-home-2026.js.
   Tokens: css/dn-site-2026.css. One background layer per section; ink only for the primary action. */
#dnh { --ink: #131313; --bone: #F5F0E6; --paper: #FFFDF8; --gold: #A28C3E; --gold-warm: #C7A74D; --gold-ink: #6E5C22; --grey: #69645D;
  --line: #E7DFCF; --line-gold: #C9BC8F; --wa: #25D366;
  display: block; background: var(--paper); color: var(--ink); font-family: var(--dn26-font); text-align: start; }
#dnh *, #dnh *::before, #dnh *::after { box-sizing: border-box; }
#dnh section { position: relative; }
#dnh .dnh-wrap { max-width: 1280px; margin: 0 auto; padding: 88px 32px; display: flex; flex-direction: column; gap: 36px; }
#dnh h1, #dnh h2, #dnh h3, #dnh p, #dnh figure { margin: 0; }
#dnh h2 { font-size: 40px !important; line-height: 1.1 !important; font-weight: 800 !important; color: var(--ink) !important; text-wrap: balance; letter-spacing: -0.01em; }
#dnh h3 { color: var(--ink) !important; }
#dnh .dnh-k { color: var(--gold-ink) !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .16em; text-transform: uppercase; }
html[dir="rtl"] #dnh .dnh-k { letter-spacing: 0; font-size: 14px !important; }
#dnh .dnh-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
#dnh .dnh-head > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
#dnh .dnh-head .dnh-lead { color: var(--grey); font-size: 16px; line-height: 1.6; font-weight: 500; }
#dnh a { text-decoration: none; }
#dnh .dnh-more { margin-inline-start: auto; font-size: 14px !important; font-weight: 800 !important; color: var(--gold-ink) !important; display: inline-flex; align-items: center; min-height: 44px; }
#dnh .dnh-more:hover { color: var(--ink) !important; }
#dnh :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#dnh .dnh-ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero ---------- */
#dnh .dnh-hero { min-height: 740px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
#dnh .dnh-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#dnh .dnh-hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(19,19,19,.68) 0%, rgba(19,19,19,.38) 55%, rgba(19,19,19,.12) 100%); }
html[dir="rtl"] #dnh .dnh-hero::before { background: linear-gradient(260deg, rgba(19,19,19,.68) 0%, rgba(19,19,19,.38) 55%, rgba(19,19,19,.12) 100%); }
#dnh .dnh-hero .dnh-wrap { position: relative; z-index: 2; width: 100%; padding-block: 96px; gap: 28px; }
#dnh .dnh-eyebrow { color: var(--gold-warm) !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: .18em; text-transform: uppercase; }
html[dir="rtl"] #dnh .dnh-eyebrow { letter-spacing: 0; font-size: 17px !important; }
#dnh h1 { color: var(--paper) !important; font-size: 64px !important; line-height: 1.06 !important; font-weight: 800 !important; max-width: 740px; text-wrap: balance; letter-spacing: -0.015em; }
html[dir="rtl"] #dnh h1 { line-height: 1.25 !important; font-size: 56px !important; letter-spacing: 0; }
#dnh .dnh-hero-lead { color: var(--bone) !important; font-size: 18px !important; line-height: 1.6 !important; max-width: 600px; font-weight: 500; }

/* search card */
#dnh .dnh-search { background: var(--paper); border-radius: 20px; padding: 20px; max-width: 880px; box-shadow: 0 24px 60px rgba(19,19,19,.28);
  display: flex; flex-direction: column; gap: 14px; }
#dnh .dnh-row1 { display: flex; align-items: center; gap: 10px; }
#dnh .dnh-seg { display: flex; background: var(--bone); border-radius: 999px; padding: 4px; gap: 4px; border: 0; margin: 0; min-width: 0; }
#dnh .dnh-seg label { position: relative; cursor: pointer; margin: 0; }
#dnh .dnh-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#dnh .dnh-seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; font-size: 14px; font-weight: 800; padding: 0 24px;
  border-radius: 999px; color: var(--ink); border: 1px solid transparent; line-height: 1; transition: background .15s, color .15s; }
#dnh .dnh-seg input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
#dnh .dnh-seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#dnh .dnh-ai { margin-inline-start: auto; font: inherit; font-size: 13px; font-weight: 800; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; background: var(--bone); color: var(--grey); border: 1px solid #D8CDB2; }
#dnh .dnh-ai[aria-pressed="true"] { background: var(--paper); color: var(--gold-ink); border-color: var(--gold); }
#dnh .dnh-ai svg { flex: 0 0 auto; }
#dnh .dnh-ai { white-space: nowrap; }
#dnh .dnh-ai-s { display: none; }
#dnh .dnh-row2 { display: flex; gap: 12px; }
#dnh .dnh-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; border: 1px solid #D8CDB2; border-radius: 12px;
  padding: 0 16px; background: var(--paper); min-height: 54px; flex-wrap: wrap; }
#dnh .dnh-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(162,140,62,.18); }
#dnh .dnh-tags { display: contents; }
#dnh .dnh-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line-gold);
  font-size: 13px; font-weight: 700; color: var(--ink); max-width: 100%; }
html[dir="rtl"] #dnh .dnh-tag { padding: 5px 10px 5px 6px; }
#dnh .dnh-tag button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--grey); cursor: pointer; font: inherit; font-size: 16px; line-height: 1; }
#dnh .dnh-tag button:hover { background: var(--paper); color: var(--ink); }
#dnh .dnh-field input { flex: 1 1 160px; min-width: 120px; border: 0 !important; outline: none !important; background: transparent !important; height: 52px; padding: 0 !important;
  font: inherit; font-size: 15px !important; color: var(--ink) !important; box-shadow: none !important; }
#dnh .dnh-field input::placeholder { color: #8A8378; opacity: 1; }
#dnh .dnh-go { font: inherit; background: var(--ink); color: var(--bone); border: 1px solid var(--ink); font-size: 15px; font-weight: 800; padding: 0 36px; border-radius: 12px;
  cursor: pointer; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; line-height: 1 !important; }
#dnh .dnh-go:hover { background: #2A2926; }
#dnh .dnh-suggest { position: absolute; top: calc(100% + 8px); inset-inline: -1px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(19,19,19,.3); padding: 6px; max-height: 320px; overflow: auto; z-index: 30; display: none; }
#dnh .dnh-suggest.is-open { display: block; }
#dnh .dnh-suggest button { display: flex; width: 100%; text-align: start; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: none; border: 0;
  border-radius: 10px; padding: 11px 12px; cursor: pointer; min-height: 44px; align-items: center; }
#dnh .dnh-suggest button:hover, #dnh .dnh-suggest button.is-active { background: var(--bone); }
#dnh .dnh-suggest mark { background: none; color: var(--gold-ink); }
#dnh .dnh-suggest .dnh-none { padding: 11px 12px; color: var(--grey); font-size: 13px; font-weight: 600; }
#dnh .dnh-ai-hint { color: var(--grey); font-size: 13px; font-weight: 600; line-height: 1.5; min-height: 0; }
#dnh .dnh-ai-hint:empty { display: none; }
#dnh .dnh-ai-hint b { color: var(--gold-ink); font-weight: 800; }
#dnh .dnh-pop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#dnh .dnh-pop > span { color: var(--grey); font-size: 13px; font-weight: 700; }
#dnh .dnh-chip { color: var(--ink) !important; font-size: 13px !important; font-weight: 700 !important; background: var(--bone); border: 1px solid var(--line-gold);
  border-radius: 999px; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; }
#dnh .dnh-chip:hover { border-color: var(--gold); background: var(--paper); }

/* ---------- Trust strip ---------- */
#dnh .dnh-trust { background: var(--paper); border-bottom: 1px solid #EFE8D8; }
#dnh .dnh-trust .dnh-wrap { padding-block: 36px; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#dnh .dnh-stat { display: flex; flex-direction: column; gap: 4px; }
#dnh .dnh-stat b { direction: ltr; unicode-bidi: isolate; align-self: flex-start; font-size: 30px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#dnh .dnh-stat span { font-size: 13px; font-weight: 700; color: var(--grey); }
#dnh .dnh-sep { width: 1px; height: 44px; background: #DCD2B8; }

/* ---------- Listings ---------- */
#dnh .dnh-tabs { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#dnh .dnh-tab { font: inherit; display: inline-flex; align-items: center; justify-content: center; line-height: 1 !important; font-size: 14px; font-weight: 800; padding: 0 22px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: var(--bone); color: var(--ink); border: 1px solid var(--line-gold); }
#dnh .dnh-tab[aria-selected="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
#dnh .dnh-tabs .dnh-more { margin-inline-start: 10px; }
#dnh .dnh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  color: var(--ink) !important; transition: border-color .15s, box-shadow .15s; }
#dnh .dnh-card:hover { border-color: var(--line-gold); box-shadow: 0 18px 40px -24px rgba(19,19,19,.35); }
#dnh .dnh-ph { position: relative; height: 230px; background: var(--bone); }
#dnh .dnh-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
#dnh .dnh-ph img.is-ph { object-fit: cover; }
#dnh .dnh-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--paper); color: var(--gold-ink); font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
html[dir="rtl"] #dnh .dnh-badge { letter-spacing: 0; font-size: 13px; }
#dnh .dnh-in { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
#dnh .dnh-price { font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#dnh .dnh-price small { font-size: 14px; font-weight: 700; color: var(--grey); }
#dnh .dnh-price.is-poa { color: var(--gold-ink); }
#dnh .dnh-card h3 { font-size: 16px !important; font-weight: 700 !important; line-height: 1.4 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; unicode-bidi: plaintext; }
#dnh .dnh-loc { display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 14px; font-weight: 500; }
#dnh .dnh-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dnh .dnh-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #EFE8D8; display: flex; align-items: center; gap: 8px; }
#dnh .dnh-meta { color: var(--grey); font-size: 13px; font-weight: 700; }
#dnh .dnh-det { margin-inline-start: auto; font-size: 13px; font-weight: 800; color: var(--gold-ink); white-space: nowrap; }
#dnh .dnh-card:hover .dnh-det { color: var(--ink); }
#dnh .dnh-skel { background: linear-gradient(90deg, #F3EDE1 0%, #FBF7EF 50%, #F3EDE1 100%); background-size: 200% 100%; animation: dnh-sk 1.4s ease-in-out infinite; border-radius: 6px; }
@keyframes dnh-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
#dnh .dnh-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--grey); font-weight: 600; background: var(--bone); border-radius: 16px; }
#dnh .dnh-btn.dnh-all-m { display: none; }

/* ---------- Communities ---------- */
#dnh .dnh-areas { background: var(--bone); }
#dnh .dnh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; height: 300px; background: #D8CDB2; }
#dnh .dnh-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
#dnh .dnh-tile:hover img { transform: scale(1.04); }
#dnh .dnh-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,19,19,0) 45%, rgba(19,19,19,.72) 100%); }
#dnh .dnh-tile > span { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
#dnh .dnh-tile b { color: var(--paper); font-size: 20px; font-weight: 800; }
#dnh .dnh-tile small { color: #E7DFCF; font-size: 13px; font-weight: 700; }

/* ---------- Steps / why cards ---------- */
#dnh .dnh-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
#dnh .dnh-box { background: var(--bone); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
#dnh .dnh-box .dnh-n { color: var(--gold-ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
#dnh .dnh-box h3 { font-size: 18px !important; font-weight: 800 !important; line-height: 1.35 !important; }
#dnh .dnh-box p { color: var(--grey); font-size: 14px; line-height: 1.6; font-weight: 500; }

/* ---------- About the founders ---------- */
#dnh .dnh-about { background: var(--bone); overflow: hidden; }
#dnh .dnh-motif { position: absolute; top: -40px; inset-inline-end: -40px; width: 260px; height: 260px; opacity: .35; pointer-events: none; }
html[dir="rtl"] #dnh .dnh-motif { transform: scaleX(-1); }
#dnh .dnh-about .dnh-wrap, #dnh .dnh-contact .dnh-wrap { flex-direction: row; gap: 64px; align-items: center; flex-wrap: wrap; }
#dnh .dnh-about-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#dnh .dnh-about-copy p { color: var(--ink); font-size: 16px; line-height: 1.7; font-weight: 500; max-width: 68ch; }
#dnh .dnh-acts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
#dnh .dnh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 15px !important;
  font-weight: 800 !important; background: var(--ink); color: var(--bone) !important; border: 1px solid var(--ink); }
#dnh .dnh-btn:hover { background: #2A2926; }
#dnh .dnh-btn.is-ghost { background: var(--paper); color: var(--ink) !important; border-color: var(--gold); }
#dnh .dnh-btn.is-ghost:hover { background: var(--ink); color: var(--bone) !important; border-color: var(--ink); }
#dnh .dnh-btn.is-wa { background: var(--wa); color: var(--ink) !important; border-color: var(--wa); }
#dnh .dnh-btn.is-wa:hover { background: #1FBE5B; }
#dnh .dnh-founders { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
/* the only file is 315 x 520: shown at 300 px wide, never larger */
#dnh .dnh-founders img { width: 300px; max-width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 20px 48px rgba(19,19,19,.18); }
#dnh .dnh-founders figcaption { color: var(--grey); font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Contact ---------- */
#dnh .dnh-contact { background: var(--bone); }
#dnh .dnh-contact-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
#dnh .dnh-contact-copy > p { color: var(--grey); font-size: 16px; line-height: 1.7; font-weight: 500; }
#dnh .dnh-contact .dnh-acts { margin-top: 0; }
#dnh .dnh-contact .dnh-btn { padding: 0 26px; }
#dnh .dnh-addr { display: flex; align-items: center; gap: 8px; color: var(--grey); font-size: 14px; font-weight: 700; margin-top: 6px; flex-wrap: wrap; }
#dnh .dnh-office { flex: 1 1 420px; min-width: 0; max-width: 520px; height: 360px; object-fit: cover; border-radius: 16px; display: block; box-shadow: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  #dnh .dnh-tiles, #dnh .dnh-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dnh .dnh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dnh h1 { font-size: 52px !important; }
}
/* the home sections run edge to edge past the 8px public gutter */
@media (max-width: 900px) {
  #dnh { width: 100vw; margin-inline: calc(50% - 50vw); }
}

/* ---------- Phone (Home-Phone.dc.html) ---------- */
@media (max-width: 760px) {
  #dnh .dnh-wrap { padding: 56px 16px; gap: 24px; }
  #dnh h2 { font-size: 28px !important; }
  #dnh .dnh-hero { min-height: 0; }
  #dnh .dnh-hero .dnh-wrap { padding-block: 40px 28px; gap: 16px; }
  #dnh .dnh-hero::before { background: linear-gradient(180deg, rgba(19,19,19,.62) 0%, rgba(19,19,19,.5) 60%, rgba(19,19,19,.35) 100%) !important; }
  #dnh .dnh-eyebrow { font-size: 11px !important; letter-spacing: .14em; }
  html[dir="rtl"] #dnh .dnh-eyebrow { font-size: 15px !important; }
  #dnh h1 { font-size: 34px !important; line-height: 1.1 !important; }
  html[dir="rtl"] #dnh h1 { font-size: 32px !important; line-height: 1.3 !important; }
  #dnh .dnh-hero-lead { font-size: 15px !important; line-height: 1.55 !important; }
  #dnh .dnh-search { padding: 14px; border-radius: 16px; gap: 12px; }
  #dnh .dnh-seg span { padding: 0 18px; }
  #dnh .dnh-ai { padding: 0 12px; font-size: 12px; }
  #dnh .dnh-ai-l { display: none; }
  #dnh .dnh-ai-s { display: inline; }
  #dnh .dnh-row2 { flex-direction: column; }
  #dnh .dnh-go { width: 100%; min-height: 50px; }
  #dnh .dnh-suggest { position: absolute; }
  #dnh .dnh-trust .dnh-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-block: 28px; }
  #dnh .dnh-sep { display: none; }
  #dnh .dnh-stat b { font-size: 24px; }
  #dnh .dnh-stat:last-child { grid-column: 1 / -1; }
  #dnh .dnh-tabs { margin-inline-start: 0; width: 100%; }
  #dnh .dnh-tabs .dnh-more { display: none; }
  #dnh .dnh-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #dnh .dnh-cards > .dnh-card:nth-child(n+4) { display: none; }
  #dnh .dnh-btn.dnh-all-m { display: flex; align-self: stretch; }
  #dnh .dnh-ph { height: 210px; }
  #dnh .dnh-head .dnh-more { margin-inline-start: 0; }
  #dnh .dnh-tiles { gap: 12px; }
  #dnh .dnh-tile { height: 180px; border-radius: 14px; }
  #dnh .dnh-tile > span { inset-inline: 12px; bottom: 10px; }
  #dnh .dnh-tile b { font-size: 15px; }
  #dnh .dnh-grid4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #dnh .dnh-steps .dnh-box { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 20px; }
  #dnh .dnh-steps .dnh-box p { flex: 1 1 100%; padding-inline-start: 34px; }
  #dnh .dnh-why .dnh-box { padding: 20px; }
  #dnh .dnh-about .dnh-wrap, #dnh .dnh-contact .dnh-wrap { gap: 28px; }
  #dnh .dnh-about-copy { display: contents; }
  #dnh .dnh-about-copy > * { order: 2; }
  #dnh .dnh-about-copy > .dnh-k, #dnh .dnh-about-copy > h2 { order: 0; }
  #dnh .dnh-founders { order: 1 !important; width: 100%; }
  #dnh .dnh-founders img { width: min(300px, 100%); }
  #dnh .dnh-acts { flex-direction: column; width: 100%; }
  #dnh .dnh-acts .dnh-btn { width: 100%; }
  #dnh .dnh-motif { width: 160px; height: 160px; }
  #dnh .dnh-office { flex-basis: auto; width: 100%; height: 220px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #dnh *, #dnh *::before, #dnh *::after { transition: none !important; animation: none !important; }
}
