/* Neil Macbale real estate site. Spacing on an 8px grid, type scale x1.25. */
:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --ink: #18223a;
  --ink-soft: #4a5368;
  --line: #e4dfd4;
  --blue: #1f3fa8;
  --blue-dark: #152d7c;
  --blue-tint: #e9edf8;
  --footer: #121a30;
  --shadow: 0 8px 16px rgba(24, 34, 58, 0.08);
  --radius: 8px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.45rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 1.95rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 16px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; line-height: 1.2; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* Header */
.topbar { background: var(--footer); color: #cfd5e4; font-size: 0.875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 52px; width: auto; }
.brand-sig { display: block; height: 50px; width: auto; }
.footer-logo { display: block; width: 100%; max-width: 300px; height: auto; margin-bottom: 16px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { color: #fff; padding: 8px 16px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: inherit; color: var(--ink); }

/* Hero */
.hero { position: relative; color: #fff; padding: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 26, 48, 0.86) 0%, rgba(18, 26, 48, 0.6) 55%, rgba(18, 26, 48, 0.2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 18ch; }
.hero .lede { color: #e3e7f0; }
.hero .eyebrow { color: #b9c6ef; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.page-head { padding: 48px 0 32px; }
.page-head .lede { margin-bottom: 0; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--ink-soft); flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " \2192"; }

.photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.headshot { border-radius: var(--radius); box-shadow: var(--shadow); max-width: 320px; }

.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 72px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 0; box-shadow: var(--shadow); }
.review blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.review figcaption { font-size: 0.9rem; color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); }
.stars { color: #b8860b; letter-spacing: 2px; margin-bottom: 8px; }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 600; background: #fbfaf7; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 24px; font-weight: 600; list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 12px; font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 24px 16px; color: var(--ink-soft); }

/* Forms */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form h2, .form h3 { margin-bottom: 8px; }
.form .hint { color: var(--ink-soft); font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.fields .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfc8b9; border-radius: 6px; padding: 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea { min-height: 112px; resize: vertical; }
.hidden { display: none; }
.form .small { font-size: 0.85rem; color: var(--ink-soft); margin: 16px 0 0; }

/* Calculator */
.calc-out { margin-top: 24px; padding: 24px; background: var(--blue-tint); border-radius: var(--radius); }
.calc-out .big { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--blue-dark); }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; color: #dbe2f7; }
.cta-band .btn { background: #fff; color: var(--blue-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--blue-tint); }
.cta-band .btn-ghost { background: transparent; color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Footer */
.site-footer { background: var(--footer); color: #b9c0d2; padding: 48px 0 96px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--sans); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid #2a3350; margin-top: 32px; padding-top: 24px; font-size: 0.85rem; }
.eho { display: inline-flex; align-items: center; gap: 8px; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .reviews { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
  .site-header .wrap { position: relative; }
  .topbar .hide-sm { display: none; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(24, 34, 58, 0.08);
  }
  .callbar a { text-align: center; padding: 12px 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--blue-dark); }
  .callbar a + a { border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 48px 0; }
  .fields { grid-template-columns: 1fr; }
  .form, .card, .review { padding: 24px; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero::after { background: rgba(18, 26, 48, 0.72); }
  .brand { gap: 8px; }
  .brand-logo { height: 40px; }
  .brand-sig { height: 30px; }
}

/* House photo on the letter pages (/home/<address>) */
.lp-sv { padding: 0 0 8px; }
.lp-photo { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 32px rgba(24, 34, 58, 0.16); border: 6px solid #fff; background: #fff; }
.lp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }


/* Keep the About portrait aligned to the top while trimming the bottom. */
html:has(link[rel="canonical"][href$="/about/"]) .headshot {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}
