/* ============================================================
   Your Friendly House Buyers — design system
   "Friendly sky" — light blue + white + warm orange accent
   Fraunces (display) + Public Sans (body)
   NOTE: variable names kept from the original craftsman theme
   (spruce = deep blues, cedar = orange accent, cream = blue tints)
   so the page templates didn't need to change.
   ============================================================ */
:root {
  --spruce-950: #0a2540;
  --spruce-900: #113a66;
  --spruce-800: #1a4d85;
  --spruce-600: #2f6fb3;
  --spruce-100: #dbeafe;
  --cedar-700: #a16207;
  --cedar-600: #f2b01e;
  --cedar-100: #fef3c7;
  --cream-50: #f5faff;
  --cream-100: #e7f2fc;
  --cream-200: #d0e4f7;
  --ink: #1f2d3d;
  --ink-soft: #55677a;
  --paper: #ffffff;
  --radius: 16px;
  --shadow-card: 0 2px 6px rgba(13, 43, 78, 0.06), 0 18px 40px -18px rgba(13, 43, 78, 0.25);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  background-image: var(--grain);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--spruce-900);
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; }

a, button, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cedar-600);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cedar-600); color: var(--spruce-950); font-weight: 700;
  padding: 12px 20px;
}
.skip-link:focus { left: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
section { padding: 76px 0; }
section[id], #get-offer { scroll-margin-top: 90px; }
.section-intro { max-width: 660px; color: var(--ink-soft); margin-bottom: 42px; font-size: 1.08rem; }
.kicker {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cedar-700);
  margin-bottom: 14px;
}
.kicker::before { content: "—"; margin-right: 8px; color: var(--cedar-600); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--cedar-600); color: var(--spruce-950);
  font-weight: 700; font-size: 1.05rem;
  padding: 16px 32px;
  border: none; border-radius: 999px;
  cursor: pointer; text-decoration: none; text-align: center;
  box-shadow: 0 3px 0 var(--cedar-700);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #d99f0b; transform: translateY(-2px); box-shadow: 0 5px 0 #854d0e; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--cedar-700); }
.btn-ghost {
  display: inline-block;
  color: var(--spruce-800); font-weight: 700; text-decoration: none;
  padding: 15px 28px; border: 2px solid var(--spruce-600); border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { background: var(--spruce-800); color: var(--cream-50); }

/* Header */
header.site {
  background: var(--cream-50);
  border-bottom: 1px solid var(--cream-200);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1200px; margin: 0 auto; padding: 14px 22px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 1.18rem; line-height: 1.1;
  color: var(--spruce-900); text-decoration: none; white-space: nowrap;
}
.brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--spruce-800); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--cedar-600); }
.nav-links a[aria-current="page"] { color: var(--cedar-700); border-bottom: 2px solid var(--cedar-600); padding-bottom: 2px; }
.nav-phone {
  color: var(--spruce-900) !important; font-weight: 800 !important;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav .btn { padding: 11px 22px; font-size: 0.92rem; }
@media (max-width: 880px) {
  .nav-links li:not(.nav-cta):not(.nav-tel) { display: none; }
}

/* Hero */
.hero {
  background: var(--spruce-900);
  background-image:
    var(--grain),
    radial-gradient(1100px 480px at 88% -10%, rgba(242, 176, 30, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(47, 111, 179, 0.5), transparent 55%);
  color: var(--cream-50);
  padding: 84px 0 92px;
  position: relative;
}
.hero::after {  /* roofline silhouette */
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 36px;
  background: var(--cream-50);
  clip-path: polygon(0 100%, 0 60%, 6% 60%, 9% 20%, 12% 60%, 22% 60%, 26% 10%, 30% 60%, 44% 60%, 48% 25%, 52% 60%, 64% 60%, 68% 15%, 72% 60%, 84% 60%, 88% 30%, 91% 60%, 100% 60%, 100% 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 60px; align-items: center;
}
.hero h1 {
  color: var(--cream-50);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 640;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: #fcd34d; }
.hero .lede { font-size: 1.16rem; color: #dbeafd; max-width: 540px; margin-bottom: 30px; }
.hero-points { list-style: none; display: grid; gap: 11px; }
.hero-points li { display: flex; gap: 11px; align-items: flex-start; color: #eaf3fd; }
.hero-points svg { flex-shrink: 0; margin-top: 4px; }
.hero-call {
  margin-top: 30px; font-size: 1.02rem; color: #b9d3ef;
}
.hero-call a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--cedar-600); }

/* Offer form card */
.offer-card {
  background: var(--paper);
  border-radius: var(--radius);
  border-top: 6px solid var(--cedar-600);
  padding: 34px 32px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.offer-card h2 { font-size: 1.45rem; margin-bottom: 5px; }
.offer-card .sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 5px; color: var(--spruce-800); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; font-size: 1rem;
  border: 1.5px solid var(--cream-200); border-radius: 9px;
  font-family: inherit; background: var(--cream-50); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--spruce-600); border-color: var(--spruce-600); background: #fff;
}
.offer-card .btn { width: 100%; margin-top: 6px; }
.fine-print { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* Trust strip */
.trust-strip { background: var(--cream-100); border-bottom: 1px solid var(--cream-200); padding: 20px 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 12px 38px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.93rem; color: var(--spruce-800); }
.trust-item::before { content: "✓"; color: var(--cedar-600); font-weight: 800; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: var(--paper);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 1px 3px rgba(13,43,78,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card h3 { margin-bottom: 8px; color: var(--spruce-900); }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--cedar-700); }

/* Steps */
.steps-band { background: var(--spruce-900); background-image: var(--grain); color: var(--cream-50); }
.steps-band h2, .steps-band h3 { color: var(--cream-50); }
.steps-band .section-intro { color: #b9d3ef; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; counter-reset: step; }
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.2rem; font-weight: 600; font-style: italic; line-height: 1;
  color: #fcd34d; display: block; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: #d3e5f8; font-size: 0.96rem; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(13,43,78,0.07); }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--cream-200); }
.compare-table thead th { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--spruce-900); background: var(--cream-100); }
.compare-table th:nth-child(2) { color: var(--ink-soft); }
.compare-table td:last-child, .compare-table thead th:last-child { background: var(--spruce-100); font-weight: 600; color: var(--spruce-900); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* FAQ */
details {
  background: var(--paper);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  cursor: pointer; padding: 19px 22px;
  font-weight: 700; color: var(--spruce-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--cedar-600); flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 22px 19px; color: var(--ink-soft); }
.faq-list { max-width: 860px; }

/* Prose / subpage content */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; margin-bottom: 0.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.05em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--cedar-700); font-weight: 600; }
.note-box {
  background: var(--cedar-100); border-left: 5px solid var(--cedar-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 26px 0;
}
.note-box p { margin: 0; color: var(--spruce-900); }

/* Page header (subpages) */
.page-header {
  background: var(--spruce-900);
  background-image: var(--grain), radial-gradient(900px 380px at 90% -20%, rgba(242,176,30,0.2), transparent 60%);
  color: var(--cream-50);
  padding: 46px 0 60px;
}
.page-header h1 { color: var(--cream-50); font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; font-weight: 640; }
.page-header .lede { color: #d3e5f8; font-size: 1.12rem; max-width: 700px; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 26px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #86a9cf; }
.breadcrumbs a { color: #b9d3ef; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; }

/* CTA band */
.cta-band {
  background: var(--cedar-600);
  background-image: var(--grain);
  color: var(--spruce-950); text-align: center;
}
.cta-band h2 { color: var(--spruce-950); }
.cta-band p { max-width: 560px; margin: 0 auto 30px; color: var(--spruce-900); }
.cta-band .btn { background: var(--spruce-900); color: #fff; box-shadow: 0 3px 0 #061c36; }
.cta-band .btn:hover { background: var(--spruce-950); }
.cta-band .tel { display: block; margin-top: 18px; color: var(--spruce-950); font-weight: 800; font-size: 1.15rem; text-decoration: none; }

/* Footer */
footer.site {
  background: var(--spruce-950); background-image: var(--grain);
  color: #9fb9d6; padding: 56px 0 90px; font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; }
.footer-grid h3 { color: var(--cream-50); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
footer.site a { color: #c5d9f0; text-decoration: none; }
footer.site a:hover { color: #fff; }
.footer-brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--cream-50); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 42px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Sticky mobile call bar */
.call-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  display: none;
  background: var(--spruce-950);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.call-bar a { flex: 1; text-align: center; text-decoration: none; font-weight: 800; padding: 13px 10px; border-radius: 10px; font-size: 0.98rem; }
.call-bar .call { background: var(--spruce-600); color: #fff; }
.call-bar .offer { background: var(--cedar-600); color: var(--spruce-950); }
@media (max-width: 760px) { .call-bar { display: flex; } }

/* Reveal animation (page load) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lede, .hero-points, .hero-call { animation: rise 0.6s ease both; }
.hero .lede { animation-delay: 0.08s; }
.hero-points { animation-delay: 0.16s; }
.hero-call { animation-delay: 0.24s; }
.hero .offer-card { animation: rise 0.6s 0.2s ease both; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  section { padding: 58px 0; }
}

/* Content photos — capped width, centered, framed so they pop */
.page-photo { max-width: 740px; margin: 34px auto 12px; }
.page-photo img {
  display: block; width: 100%; height: auto;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--cream-200), 0 20px 40px -20px rgba(13, 43, 78, 0.45);
}
.page-photo.framed { max-width: 820px; }

/* Centered content columns — keep every constrained block on the page axis */
.prose { margin-left: auto; margin-right: auto; }
.section-intro { margin-left: auto; margin-right: auto; text-align: center; }
.faq-list { margin-left: auto; margin-right: auto; }
.page-header { text-align: center; }
.page-header .lede { margin-left: auto; margin-right: auto; }
.breadcrumbs ol { justify-content: center; }
section > .container:not(.prose) > h2,
section > .container:not(.prose) > .kicker { text-align: center; }
section > .container:not(.prose) > .kicker { display: block; }
