/* =========================================================
   HendersonNVProperty.com — Klinger Real Estate Group
   One stylesheet for the whole site. Edit colors in :root.
   ========================================================= */

:root {
  --ink: #1b1917;          /* headings, header background */
  --ink-2: #3d3934;        /* body text */
  --muted: #6f6860;        /* captions, meta */
  --sand: #f5efe6;         /* page background */
  --sand-2: #ebe2d4;       /* alt section background */
  --paper: #ffffff;        /* cards */
  --line: #e2d9cb;         /* borders */
  --red: #b80000;          /* brand red (from the NDR / Klinger logos) */
  --red-dark: #8c0000;
  --red-tint: #fbeaea;
  --ok: #1f7a4d;
  --warn: #9a6200;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27,25,23,.06), 0 8px 24px rgba(27,25,23,.07);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--red); font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 .9rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header (flat nav, no dropdowns) ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #e9e4dc; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(184,0,0,.85); }
.header-call { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; }
.header-call:hover { color: #fff; border-color: #fff; }
@media (max-width: 980px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand img { height: 38px; }
  .header-call { margin-left: auto; padding: 6px 12px; font-size: .92rem; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 8px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-bg picture { position: absolute; inset: 0; }
.hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,14,.86) 0%, rgba(20,16,14,.62) 48%, rgba(20,16,14,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 32px; padding-top: clamp(48px, 8vw, 96px); }
.hero-copy { padding-bottom: clamp(48px, 7vw, 88px); }
.hero h1 { color: #fff; }
.hero h1 em { color: #ffb4a8; }
.hero .lead { color: #efe9e1; }
.hero .eyebrow { color: #ffb4a8; }
.hero-photo img { width: 100%; max-width: 440px; margin-left: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 300px; margin: 0 auto; }
  .hero-copy { padding-bottom: 8px; }
}

.page-hero { background: var(--ink); color: #fff; padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero h1 em { color: #ffb4a8; }
.page-hero .lead { color: #e7e0d6; }
.page-hero .eyebrow { color: #ffb4a8; }
.page-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,14,.9), rgba(20,16,14,.55)); }
.page-hero.has-bg .hero-bg { position: absolute; inset: 0; }
.page-hero.has-bg .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .wrap { position: relative; z-index: 1; }

/* ---------- Stats strip ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); color: var(--ink); }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--sand-2); }
.section.white { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.22rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card .meta { font-size: .88rem; color: var(--muted); }
.card .media { aspect-ratio: 16 / 10; background: var(--sand-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .media img { transform: scale(1.03); }

.feature { padding: 26px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }

/* ---------- Listings ---------- */
.listing .media { position: relative; aspect-ratio: 4 / 3; }
.listing .badge { position: absolute; top: 12px; left: 12px; background: var(--ok); color: #fff; font: 700 .72rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.listing .badge.pending { background: var(--warn); }
.listing .badge.sold { background: var(--red); }
.listing .price { font: 600 1.5rem/1.1 var(--font-display); color: var(--ink); }
.listing .addr { font-weight: 600; color: var(--ink); }
.listing .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.listing .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: .78rem; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.no-photo { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff;
  background: radial-gradient(120% 90% at 20% 10%, #5b2b22 0%, #2a1d19 55%, #1b1917 100%); }
.no-photo span { font: 500 italic 1.1rem/1.3 var(--font-display); opacity: .9; }

.sold-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .97rem; }
.sold-table th, .sold-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sold-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.sold-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sold-table th.num { text-align: right; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 640px) {
  .sold-table thead { display: none; }
  .sold-table, .sold-table tbody, .sold-table tr, .sold-table td { display: block; width: 100%; }
  .sold-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .sold-table td { border: 0; padding: 2px 0; text-align: left !important; }
  .sold-table td:first-child { font-weight: 600; color: var(--ink); }
  .sold-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ---------- Video ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.yt button:hover img { opacity: 1; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s; }
.yt button:hover .play { transform: scale(1.08); }
.yt .play svg { width: 28px; height: 28px; margin-left: 4px; fill: #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .card-body p { margin: 0; font-size: .95rem; }
.video-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .video-feature { grid-template-columns: 1fr; } }
.coming-soon { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: rgba(255,255,255,.5); }

/* ---------- Team ---------- */
.person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.person:first-of-type { border-top: 0; }
.person-photo { background: linear-gradient(180deg, var(--sand-2), #d9cbb6); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-photo .initials { font: 600 4.5rem/1 var(--font-display); color: var(--ink); opacity: .55; align-self: center; }
.person h2 { margin-bottom: .1em; }
.person .role { color: var(--red); font-weight: 600; margin-bottom: 1rem; }
.person .contact-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-weight: 600; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.creds li { font-size: .85rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 300px; } }

/* ---------- Blog post ---------- */
.post-hero { padding: clamp(40px, 6vw, 72px) 0 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.post-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 24ch; }
.post-meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.post-cover { max-width: 1000px; margin: 32px auto 0; padding: 0 var(--gutter); }
.post-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.prose { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--red); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; background: var(--paper); font-size: .97rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--sand-2); color: var(--ink); font-weight: 600; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.5em 0; }
.callout p:last-child { margin: 0; }
.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2.5em; }
.sources ol { padding-left: 1.2em; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 2em 0 0; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sand-2); flex-shrink: 0; }
.author-box p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(44px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #ffe3df; margin: 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #cfc4b3; border-radius: var(--radius-sm); background: #fffdf9; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; }
.form-status.ok { display: block; background: #e8f5ee; color: var(--ok); }
.form-status.err { display: block; background: var(--red-tint); color: var(--red-dark); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 4px; }
.contact-list b { display: block; color: var(--ink); }

/* ---------- Rental application page ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 14px; }
.steps > li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.fee-table td:last-child { font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 4px solid var(--red); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 700 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--red); text-decoration: underline; }
.footer-brand img { width: 230px; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 4px; }
.footer-rentals { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--red) !important; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--ink); }
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.legal .eho { display: inline-flex; align-items: center; gap: 8px; }
.legal svg { width: 22px; height: 22px; fill: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Small-screen fixes ---------- */
.prose, .callout, .steps { overflow-wrap: anywhere; }
.btn { text-align: center; }
@media (max-width: 560px) {
  .prose table { font-size: .88rem; }
  .prose th, .prose td { padding: 8px 6px; }
  .prose table { font-size: .82rem; }
  .prose td.num { white-space: nowrap; }
  .prose th.num { white-space: normal; }
  .btn-row .btn { width: 100%; }
}

[hidden] { display: none !important; }
