/* =========================================================
   Agent Site (multi-page) — standalone stylesheet
   Change the tokens below to rebrand the whole site.
   ========================================================= */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #f1efea;
  --ink: #14213d;          /* deep navy */
  --text: #2d3340;
  --muted: #6b7280;
  --line: #e5e2db;
  --accent: #b08d57;       /* brass */
  --accent-dark: #94743f;
  --navy: #14213d;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.eyebrow { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 520px; margin: 10px 0 0; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 6px; font: 600 .92rem var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0d172c; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }
.link-arrow { color: var(--accent-dark); font-weight: 600; text-decoration: none; font-size: .92rem; }
.link-arrow:hover { text-decoration: underline; }

/* ===== Header ===== */
.topbar { background: var(--navy); color: #cfd5e2; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.brand span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.main-nav .btn { border-bottom: none; color: #fff; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 12px; }
}

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfd5e2; max-width: 620px; margin: 14px 0 0; font-size: 1.05rem; }
.breadcrumb { font-size: .82rem; color: #9aa5bd; margin-bottom: 14px; }
.breadcrumb a { color: #cfd5e2; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ===== Home hero ===== */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,33,61,.88) 0%, rgba(20,33,61,.55) 55%, rgba(20,33,61,.2) 100%); }
.hero .container { position: relative; width: 100%; }
.hero h1 { color: #fff; max-width: 680px; }
.hero p { font-size: 1.12rem; color: #dfe4ee; max-width: 540px; margin: 18px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Search bar */
.search-bar { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.hero .search-bar { margin-top: 40px; max-width: 980px; }
.search-bar label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; display: grid; gap: 6px; }
.search-bar.five { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .search-bar, .search-bar.five { grid-template-columns: 1fr 1fr; } .search-bar label:first-child, .search-bar .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .search-bar, .search-bar.five { grid-template-columns: 1fr; } }

/* Forms */
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; color: var(--text); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.form { display: grid; gap: 16px; }
.form label { font-size: .85rem; font-weight: 600; color: var(--ink); display: grid; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .88rem; color: #2f7a4f; min-height: 1.2em; margin: 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-strip strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--ink); line-height: 1.1; }
.stats-strip span { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) { .stats-strip { grid-template-columns: 1fr 1fr; } }

/* ===== Listing cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.status { position: absolute; top: 14px; left: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; background: var(--surface); color: var(--ink); }
.status.sold { background: var(--navy); color: #fff; }
.status.pending { background: var(--accent); color: #fff; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); font-weight: 600; }
.card-title { font-weight: 600; color: var(--ink); }
.card-addr { color: var(--muted); font-size: .9rem; }
.card-specs { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.card-specs b { color: var(--ink); }

/* Listings toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 24px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); grid-column: 1 / -1; }

/* ===== Listing detail ===== */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 520px; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery img:first-child { grid-row: 1 / 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; } .gallery img { aspect-ratio: 4/3; } .gallery img:first-child { grid-row: auto; } .gallery img:not(:first-child) { display: none; } }

.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap; margin: 32px 0 8px; }
.detail-price { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); font-weight: 600; line-height: 1; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; margin-top: 24px; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.key-facts div { padding: 18px; text-align: center; border-right: 1px solid var(--line); }
.key-facts div:last-child { border-right: 0; }
.key-facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.key-facts span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .key-facts { grid-template-columns: 1fr 1fr; } .key-facts div:nth-child(2) { border-right: 0; } .key-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.detail-block { margin-top: 40px; }
.detail-block h3 { margin-bottom: 16px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.features li { padding-left: 24px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.facts-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.facts-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-table td:first-child { color: var(--muted); width: 45%; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

.sidebar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.agent-mini { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.agent-mini img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-mini strong { display: block; color: var(--ink); }
.agent-mini span { font-size: .85rem; color: var(--muted); }
.calc { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .88rem; }
.calc .result { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,15,28,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 6px; }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ===== About / agent ===== */
.portrait { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .8rem; }
.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: grid; gap: 24px; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline strong { color: var(--ink); }

/* Services */
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.service .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--accent-dark); font-size: 1.3rem; margin-bottom: 18px; }
.service p { color: var(--muted); margin: 10px 0 0; }

/* Neighborhoods */
.hood { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; display: block; text-decoration: none; }
.hood img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hood:hover img { transform: scale(1.05); }
.hood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,33,61,.85), transparent 60%); }
.hood div { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #fff; }
.hood h3 { color: #fff; }
.hood span { font-size: .85rem; color: #dfe4ee; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* Testimonials */
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
.testimonial .stars { color: var(--accent); letter-spacing: 2px; }
.testimonial cite { font-style: normal; font-size: .88rem; color: var(--muted); }

/* ===== Blog ===== */
.post-card .card-media { aspect-ratio: 16/10; }
.post-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-cat { color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.post-card h3 { margin: 6px 0 6px; font-size: 1.3rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; margin-bottom: 40px; }
.featured-post img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured-post > div { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-post h2 { font-size: 2rem; }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } .featured-post img { min-height: 220px; } .featured-post > div { padding: 28px; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font: 500 .85rem var(--sans); cursor: pointer; color: var(--text); }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); aspect-ratio: 16/8; object-fit: cover; width: 100%; margin: -40px 0 40px; position: relative; box-shadow: var(--shadow); }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.article-body p { margin: 0 0 18px; }
.article-body ul { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 28px 0; padding: 4px 0 4px 22px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.author-box { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px; margin-top: 48px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd5e2; margin: 10px 0 0; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* Contact */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-list li span:first-child { color: var(--muted); }
.contact-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #0e182e; color: #9aa5bd; padding: 64px 0 28px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #cfd5e2; }
.site-footer a:hover { color: #fff; }
.site-footer .brand strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; }
.newsletter .btn { padding: 10px 16px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
