/* Simple, modern theme for Jonathan Bonnett, REALTOR® */
:root {
  --ink: #281a39;          /* brand ink from the original site */
  --ink-soft: #5d536a;
  --bg: #ffffff;
  --surface: #f6f6f6;      /* original page background */
  --line: #e3e3e3;         /* original card grey */
  --accent: #ed1c24;       /* red from the original palette */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(40, 26, 57, .08);
  --container: 1120px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Jost", "Futura", "Century Gothic", sans-serif;
}

@font-face { font-family: "Montserrat"; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap; src: url(/fonts/jost-latin.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 2000; }
.skip:focus { left: 8px; top: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--ink-soft); }
.section-lede { font-size: 19px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 2px solid var(--ink);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3c2a54; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 15px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Top bar ---------- */
.topbar { position: relative; z-index: 900; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { width: 150px; }
.top-social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.top-social a { display: block; border-radius: 8px; transition: transform .2s; }
.top-social a:hover { transform: translateY(-1px); }
.top-social img { width: 32px; height: 32px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; list-style: none; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: block; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.menu-btn .bar { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-btn .bar:nth-child(1) { top: 15px; }
.menu-btn .bar:nth-child(2) { top: 21px; }
.menu-btn .bar:nth-child(3) { top: 27px; }

.drawer { position: fixed; inset: 0 auto 0 0; width: 420px; max-width: 100vw; z-index: 1000; background: #fff; padding: 88px 32px 32px; display: none; box-shadow: 0 0 0 100vmax rgba(40, 26, 57, .35); overflow-y: auto; }
.drawer.open { display: block; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer ul { list-style: none; padding: 0; margin-bottom: 28px; }
.drawer li a { display: block; padding: 12px 0; font-size: 26px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer li a[aria-current="page"] { color: var(--accent); }
.drawer-close { position: absolute; right: 20px; top: 16px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.drawer-close::before, .drawer-close::after { content: ""; position: absolute; left: 10px; top: 21px; width: 24px; height: 2px; background: var(--ink); }
.drawer-close::before { transform: rotate(45deg); }
.drawer-close::after { transform: rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
.lede { font-size: 19px; color: var(--ink-soft); margin-top: 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.actions .btn { padding: 14px 18px; white-space: nowrap; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 24px; box-shadow: var(--shadow); }

/* ---------- Credentials strip ---------- */
.creds { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.cred-grid li { padding: 26px 22px; border-left: 1px solid var(--line); }
.cred-grid li:first-child { border-left: 0; padding-left: 0; }
.cred-grid strong { display: block; font-size: 16px; }
.cred-grid span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ---------- Questions ---------- */
.questions { padding: 88px 0; background: var(--surface); }
.questions h2, .services h2, .about h2, .contact h2, .stats-help h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.toc { margin: 28px 0 40px; padding: 22px 26px 22px 46px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.toc li { padding: 4px 0; font-weight: 500; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.qa { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.qa + .qa { margin-top: 20px; }
.qa-num { font-family: var(--font-alt); font-size: 40px; line-height: 1; color: var(--accent); font-weight: 500; }
.qa h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.qa-close { margin-top: 16px; font-weight: 600; }
.byline { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.more-qs { margin-top: 56px; }
.more-qs h2 { margin-bottom: 8px; }
.more-q { padding: 22px 0; border-bottom: 1px solid var(--line); }
.more-q h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.more-q p { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin-top: 16px; }
.checks li { position: relative; padding-left: 28px; margin-top: 8px; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Services ---------- */
.services { padding: 88px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin-top: 32px; }
.service-grid li { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.service-grid h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.service-grid p { color: var(--ink-soft); font-size: 16px; }

/* ---------- About ---------- */
.about { padding: 88px 0; background: var(--ink); color: #fff; }
.about .eyebrow { color: #ff9aa0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.about-copy p { color: #ded8e6; font-size: 17px; }
.about-copy p + p { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact { padding: 88px 0; }
.contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact-card > div:first-child > p { color: var(--ink-soft); margin-top: 12px; font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin-top: 24px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 18px; font-weight: 500; }
.contact-list li > span, .contact-list li > a { min-width: 0; }
.contact-list .label { white-space: nowrap; }
.contact-list a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-list svg { margin-top: .3em; color: var(--accent); }
.review-cta { margin-top: 20px; }
.partners { display: grid; gap: 20px; }
.partners a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.partners img { max-height: 110px; width: auto; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 170px; margin-bottom: 12px; }
.footer-title { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.plain { list-style: none; padding: 0; }
.plain li { padding: 4px 0; overflow-wrap: anywhere; }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin-top: 16px; }
.social img { width: 36px; height: 36px; }
.verse { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-alt); font-size: 14px; color: var(--ink-soft); }
.verse img { width: 52px; margin-top: 3px; }
.verse span { white-space: nowrap; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Market statistics page ---------- */
.page-head { padding: 64px 0 32px; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 700; }
.stats-area { padding: 8px 0 40px; }
.stats-frame { min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--ink-soft); background: var(--surface); }
.stats-help { padding: 32px 0 88px; }
.stats-help p { margin-top: 20px; font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .site-nav, .topbar-call { display: none; }
  .menu-btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 260px; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 25%; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .cred-grid li:nth-child(-n+2) { border-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-card { grid-template-columns: 1fr; gap: 24px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .topbar-inner { height: 64px; }
  .drawer { width: 100vw; box-shadow: none; }
  .topbar-inner { gap: 14px; }
  .brand img { width: 110px; }
  .top-social { gap: 4px; }
  .top-social img { width: 30px; height: 30px; }
  .hero { padding: 36px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 240px; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 25%; border-radius: 50%; }
  .actions { flex-wrap: nowrap; gap: 8px; }
  .actions .btn { flex: 1 1 0; justify-content: center; padding: 13px 8px; gap: 6px; font-size: 15px; }
  .actions .long { display: none; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-grid li { padding: 18px 0; }
  .cred-grid li:nth-child(2) { border-top: 1px solid var(--line); }
  .questions, .services, .about, .contact { padding: 56px 0; }
  .qa { grid-template-columns: 1fr; gap: 6px; padding: 24px 20px; }
  .qa-num { font-size: 30px; }
  .qa h3 { font-size: 21px; }
  .toc { padding: 18px 18px 18px 38px; }
  .service-grid { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-frame { min-height: 320px; }
}
