/* ============================================
   NEIGHBORS FOUNDATION, INC. — neighborsinc.org
   Palette: warm dusk blues + Mississippi clay
   ============================================ */

:root {
  --navy: #1b3a5c;
  --slate: #3e6990;
  --sky: #dce8f2;
  --mist: #f4f7fa;
  --clay: #c05d38;
  --clay-dark: #a34a2a;
  --cream: #fdfbf7;
  --ink: #22303c;
  --ink-soft: #52616e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

a { color: var(--slate); }

img { max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(27, 58, 92, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .roof {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--sky);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  border-bottom-color: var(--clay);
}

.nav-links a.active {
  color: #fff;
  border-bottom-color: var(--clay);
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--cream);
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 110px;
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 720px;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero p.lede {
  font-size: 1.2rem;
  max-width: 620px;
  color: var(--sky);
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover, .btn:focus-visible {
  background: var(--clay-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 2px solid var(--sky);
  color: var(--sky);
  margin-left: 14px;
}

.btn.ghost:hover, .btn.ghost:focus-visible {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ---------- Rooflines signature divider ---------- */
.rooflines {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: -1px;
}

.rooflines.flip {
  transform: scaleY(-1);
  margin-bottom: 0;
  margin-top: -1px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }

section.alt { background: var(--mist); }

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
  max-width: 640px;
}

section p { margin-bottom: 18px; max-width: 720px; color: var(--ink-soft); }

section p.strong-note {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 44px;
}

.stat {
  border-top: 3px solid var(--clay);
  padding-top: 18px;
}

.stat .num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.stat .label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: 0 3px 16px rgba(27, 58, 92, 0.08);
  border-top: 4px solid var(--slate);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(27, 58, 92, 0.14);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p { font-size: 0.98rem; margin-bottom: 0; }

.card .house-ico {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Quote / callout ---------- */
.callout {
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
  padding: 46px 44px;
  margin-top: 48px;
  position: relative;
}

.callout p {
  color: var(--sky);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 0;
}

.callout .attribution {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  margin-top: 18px;
  color: var(--sky);
  opacity: 0.85;
}

/* ---------- Service list ---------- */
.service-list {
  list-style: none;
  margin-top: 28px;
}

.service-list li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--sky);
  position: relative;
  color: var(--ink-soft);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--clay);
  clip-path: polygon(50% 0%, 100% 55%, 100% 100%, 0 100%, 0 55%);
}

.service-list li strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 16px rgba(27, 58, 92, 0.08);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card p { font-size: 1rem; margin-bottom: 0; }
.contact-card a { color: var(--clay-dark); font-weight: 600; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--cream);
  padding: 64px 0 0;
}

.page-head-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin-bottom: 14px;
}

.page-head p {
  color: var(--sky);
  font-size: 1.15rem;
  max-width: 640px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: var(--sky);
  padding: 54px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

footer p, footer li {
  font-size: 0.92rem;
  color: var(--sky);
  line-height: 1.8;
}

footer ul { list-style: none; }

footer a { color: var(--sky); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(220, 232, 242, 0.25);
  font-size: 0.82rem;
  color: rgba(220, 232, 242, 0.7);
  text-align: center;
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 18px; flex-wrap: wrap; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding-top: 56px; }
  .hero-inner { padding-bottom: 80px; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }
  section { padding: 54px 0; }
  .callout { padding: 32px 26px; }
}
