/* Seattle Northwest Homes — site styles */
:root {
  --navy: #0d2433;
  --navy-2: #163a50;
  --slate: #9fb2c0;
  --mist: #e6edf2;
  --paper: #f6f8fa;
  --white: #fff;
  --ink: #17232c;
  --muted: #5b6b77;
  --line: #d9e1e7;
  --accent: #2f8a5c;        /* evergreen */
  --accent-2: #24704a;
  --gold: #c99a3b;
  --pending: #b7791f;
  --sold: #9b2c2c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(13, 36, 51, .08);
  --shadow-lg: 0 18px 50px rgba(13, 36, 51, .16);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3, .h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .7em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: #bfe5cf; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 600 .95rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-2); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 1em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { width: 170px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: #dbe4ea; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--white); border-bottom-color: var(--accent); }
.nav-cta { padding: .65em 1.2em; }
@media (max-width: 640px) {
  .header-inner { min-height: 58px; }
  .brand img { width: 112px; }
  .site-footer .footer-brand img { width: 140px; }
}
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 10px 20px 24px; gap: 14px; display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* hero */
.hero { position: relative; color: var(--white); min-height: min(78vh, 680px); display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 36, 51, .88) 0%, rgba(13, 36, 51, .55) 55%, rgba(13, 36, 51, .2) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero .lead { color: #d6e0e7; max-width: 640px; }
.hero-search { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; background: var(--white); padding: 8px; border-radius: 16px; max-width: 860px; margin-top: 28px; box-shadow: var(--shadow-lg); }
.hero-search input, .hero-search select { border: 0; background: var(--paper); border-radius: 10px; padding: 14px; font: inherit; color: var(--ink); min-width: 0; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr 1fr; } .hero-search input, .hero-search .btn { grid-column: 1 / -1; } }

/* page hero */
.page-hero { background: var(--navy); color: var(--white); padding: 34px 0 48px; position: relative; overflow: hidden; }
.page-hero.has-image { background: linear-gradient(90deg, rgba(13, 36, 51, .92), rgba(13, 36, 51, .6)), var(--hero) center / cover no-repeat, var(--navy); padding: 40px 0 72px; }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero .lead { color: #cfdbe3; max-width: 720px; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .85rem; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; opacity: .8; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.page-hero .crumbs, .listing-top .crumbs, .post-head .crumbs { color: inherit; }

/* sections */
.section { padding: 72px 0; }
.section.tight { padding: 44px 0 64px; }
.section.alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .section { padding: 52px 0; } }

/* cards */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.22rem; margin: 0 0 .45em; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a:hover { color: var(--accent-2); }
.card .meta { margin-top: auto; font-size: .85rem; color: var(--muted); }
.price { font: 700 1.35rem/1.2 var(--sans); color: var(--navy); margin: 0 0 4px; }
.price.big { font-size: 2rem; }
.facts { display: flex; gap: 14px; color: var(--ink); font-size: .92rem; margin: 0 0 6px; flex-wrap: wrap; }
.facts span + span::before { content: '·'; margin-right: 14px; color: var(--slate); }
.loc { font-size: .88rem; color: var(--muted); margin: 0; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--white); font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.badge-pending { background: var(--pending); }
.badge-sold { background: var(--sold); }
.listing-head .badge { position: static; display: inline-block; margin-bottom: 12px; }

/* split + panels */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cols-2 { columns: 2; column-gap: 28px; }
.cols-2 li { break-inside: avoid; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.panel img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.panel-body { padding: 28px; }
@media (max-width: 860px) { .split, .two-up { grid-template-columns: 1fr; gap: 28px; } .cols-2 { columns: 1; } }

/* neighborhoods */
.hood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hood-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; color: var(--white); text-decoration: none; }
.hood-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hood-tile:hover img { transform: scale(1.06); }
.hood-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(13, 36, 51, .85)); }
.hood-tile span { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.hood-tile strong { font: 400 1.35rem/1.1 var(--serif); }
.hood-tile small { opacity: .85; font-size: .8rem; }
@media (max-width: 860px) { .hood-grid { grid-template-columns: 1fr 1fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { padding: 7px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500; }
.tag-list a:hover, .tag-list a[aria-current] { background: var(--navy); color: var(--white); }
.tag-list.cats { margin-bottom: 30px; }
.link-list { padding-left: 1.1em; }

/* listings */
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.filters label { font-size: .8rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } }
.result-count { color: var(--muted); font-weight: 500; }
.empty { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }

/* listing detail */
.listing-top { padding: 28px 0 10px; background: var(--paper); }
.listing-top .crumbs { color: var(--muted); }
.listing-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.listing-head h1 { margin-bottom: .2em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.listing-price { text-align: right; }
.listing-price .facts { justify-content: flex-end; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 10px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2.4 / 1; }
.gallery a { display: block; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g0 { grid-row: 1 / 3; }
.gallery .g3 { grid-column: 2 / 4; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; aspect-ratio: auto; grid-template-rows: auto; } .gallery .g0 { grid-column: 1 / -1; grid-row: auto; } .gallery .g3 { grid-column: auto; } .listing-price { text-align: left; } .listing-price .facts { justify-content: flex-start; } }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .listing-layout { grid-template-columns: 1fr; } }
.sticky-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.details { width: 100%; border-collapse: collapse; font-size: .94rem; margin-bottom: 1.5em; }
.details th, .details td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.details th { color: var(--muted); font-weight: 500; width: 22%; }
@media (max-width: 640px) { .details tr { display: grid; grid-template-columns: 1fr 1fr; } .details th, .details td { width: auto; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 16, 23, .94); display: none; align-items: center; justify-content: center; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* forms */
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
.lead-form .fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.lead-form.compact label { margin-bottom: 10px; }
.form-error { background: #fdecec; color: var(--sold); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* prose / blog */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul.checks { padding-left: 0; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 1.2em; background: var(--paper); border-radius: 0 10px 10px 0; }
.prose table:not(.details) { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose table:not(.details) th, .prose table:not(.details) td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose table:not(.details) th { background: var(--paper); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.post-head { padding: 36px 0 26px; }
.post-head .crumbs { color: var(--muted); }
.post-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-head .meta { color: var(--muted); font-size: .92rem; }
.post-hero { margin: 0 auto 36px; max-width: 1080px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); }
.post-body { padding-bottom: 56px; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 20px; margin-top: 40px; font-size: .95rem; }
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0 0 .3em; }
.faq { margin: 44px 0 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--mist); color: var(--navy); text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--navy); color: var(--white); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 60px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #cfdbe3; margin: 0; max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions.center { justify-content: center; }

/* footer */
.site-footer { background: #091a25; color: #b8c6d0; padding: 64px 0 26px; font-size: .93rem; }
.site-footer a { color: #dbe4ea; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { width: 180px; margin-bottom: 14px; }
.footer-h { font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 180px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.newsletter input::placeholder { color: #8aa0ae; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 44px; padding-top: 22px; font-size: .82rem; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }
.eho { display: flex; align-items: center; gap: 8px; }
@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; } }
