/* Buffalo NY Chimney — shared stylesheet */
:root {
  --accent: #1e4f8a;
  --accent-dark: #163a66;
  --accent-light: #e8f0f8;
  --text: #2a2f36;
  --muted: #5c6470;
  --border: #d8dfe7;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--accent-dark);
  color: #fff;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.brand {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover { text-decoration: underline; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: #cfe0f2;
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Main content */
main { padding: 2rem 0 3rem; }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--accent-dark);
}

h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--accent);
  color: var(--accent-dark);
}

h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--accent);
}

p { margin: 0 0 1.1rem; }

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

ul, ol { padding-left: 1.4rem; }

li { margin-bottom: 0.4rem; }

/* Key takeaways box */
.key-takeaways {
  background: var(--accent-light);
  border-left: 5px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.key-takeaways h2 {
  border-bottom: none;
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  font-size: 1.15rem;
}

.key-takeaways ul { margin: 0; }

/* Table of contents box */
.toc {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc h2 {
  border-bottom: none;
  margin: 0 0 0.5rem;
  padding-bottom: 0;
  font-size: 1.15rem;
}

.toc ul { margin: 0; list-style: none; padding-left: 0; }

.toc li { margin-bottom: 0.3rem; }

.toc a { text-decoration: none; }

.toc a:hover { text-decoration: underline; }

.toc .toc-group {
  font-weight: 700;
  margin-top: 0.6rem;
  color: var(--accent-dark);
}

/* Cost table */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.98rem;
}

.cost-table th,
.cost-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.cost-table thead th {
  background: var(--accent);
  color: #fff;
}

.cost-table tbody tr:nth-child(even) { background: var(--bg-alt); }

/* Neighborhood card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin: 1.25rem 0 1.75rem;
}

@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  flex-grow: 1;
}

.card a.card-link {
  font-weight: 600;
  text-decoration: none;
}

.card a.card-link:hover { text-decoration: underline; }

/* FAQ */
.faq-section h3 {
  color: var(--accent-dark);
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
}

/* CTA */
.cta {
  background: var(--accent-light);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  margin-top: 2.5rem;
}

/* Call bar directly below header */
.call-bar {
  background: var(--accent);
  padding: 0.55rem 0;
}

.call-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.call-bar-text {
  color: #dbe7f4;
  font-size: 0.95rem;
}

.cta-call {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.cta-call:hover { background: var(--accent-light); }

/* Closing CTA section before footer */
.cta-section {
  background: var(--accent-light);
  border-top: 4px solid var(--accent);
  padding: 2rem 0;
  text-align: center;
}

.cta-section h2 {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

.cta-section .cta-call {
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 0.7rem 1.6rem;
}

.cta-section .cta-call:hover {
  background: var(--accent-dark);
  color: #fff;
}

.footer-contact a { color: #cfe0f2; }

.footer-contact a:hover { color: #fff; }

/* Footer */
.site-footer {
  background: #101c2b;
  color: #b9c6d4;
  padding: 2rem 0;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.site-footer p { margin: 0 0 0.9rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #cfe0f2;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.copyright { color: #7e8ea0; }
