/* Wood Rescuer — shared design system */

:root {
  color-scheme: light;
  --wood-dark: #2e2016;
  --wood-mid: #6b4a34;
  --wood-warm: #8a5a37;
  --wood-light: #c99a68;
  --cream: #faf5ec;
  --paper: #fffdf9;
  --sage: #5c7350;
  --sage-dark: #435a39;
  --ink: #241c15;
  --ink-soft: #57493d;
  --line: #e6d9c5;
  --shadow: 0 10px 30px -12px rgba(46, 32, 22, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

a { color: var(--wood-warm); text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--sage-dark); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-nav .brand {
  font-family: "Georgia", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wood-dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav .brand span { color: var(--sage); }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
}
.site-nav a.navlink {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a.navlink:hover,
.site-nav a.navlink[aria-current="page"] {
  color: var(--wood-dark);
  border-bottom-color: var(--wood-light);
}
.nav-toggle { display: none; }

.site-nav a.navlink.donate { color: var(--sage-dark); font-weight: 600; }
.site-nav a.navlink.donate:hover,
.site-nav a.navlink.donate[aria-current="page"] { color: var(--sage-dark); border-bottom-color: var(--sage); }

@media (max-width: 640px) {
  .site-nav ul { gap: 16px; font-size: 0.9rem; }
}

@media (max-width: 430px) {
  .site-nav .wrap { flex-wrap: wrap; row-gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .site-nav ul { flex-basis: 100%; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(201, 154, 104, 0.35), transparent 60%),
    linear-gradient(180deg, var(--wood-dark), var(--wood-mid) 85%);
  color: var(--paper);
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(255, 253, 249, 0.05) 0 2px,
    transparent 2px 14px
  );
  opacity: 0.5;
}
.hero .kicker {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 15ch;
}
.hero p.lede {
  font-size: 1.15rem;
  color: #f2e8d8;
  max-width: 52ch;
  margin: 0 0 28px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 253, 249, 0.18);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2e8d8;
  font-size: 0.9rem;
}
.badge svg { width: 16px; height: 16px; flex: none; color: var(--wood-light); }

.hero-page {
  padding: 64px 0 48px;
}
.hero-page h1 { max-width: none; }

/* ---------- Sections ---------- */
main section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
main section:last-of-type { border-bottom: none; }
.section-tight { padding: 40px 0; }

h2 {
  font-size: 1.6rem;
  color: var(--wood-dark);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
h3 { font-size: 1.15rem; color: var(--wood-dark); letter-spacing: -0.005em; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-family: system-ui, sans-serif;
  margin: 0 0 10px;
}

/* ---------- Niagara service-area strip ---------- */
.area-strip {
  background: var(--wood-dark);
  color: var(--paper);
}
.area-strip .wrap {
  padding: 22px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.area-strip .label {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood-light);
  margin-right: 6px;
}
.area-strip .towns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.92rem;
  color: #f2e8d8;
}
.area-strip .towns span::after { content: "\00b7"; margin-left: 10px; color: var(--wood-light); }
.area-strip .towns span:last-child::after { content: ""; }

/* ---------- Before/after case studies ---------- */
.case-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: -8px 0 24px;
}
.case-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 8px;
}
.case-pair {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .case-images { grid-template-columns: 1fr; }
}
.case-pair figure {
  margin: 0;
  position: relative;
}
.case-pair img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .case-pair img { height: 340px; }
}
@media (max-width: 640px) {
  .case-pair img { height: 300px; }
}
.case-pair .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--paper);
}
.case-pair .tag.before { background: rgba(46, 32, 22, 0.75); }
.case-pair .tag.after { background: var(--sage-dark); }
.case-pair .tag.illustrative {
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  border: 1px solid rgba(46, 32, 22, 0.15);
}
.case-caption {
  padding: 16px 18px 18px;
}
.case-caption h3 { margin: 0 0 4px; font-size: 1.05rem; }
.case-caption p { font-size: 0.9rem; margin: 0; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 800px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 40px;
  height: 40px;
  color: var(--sage);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- CTA box ---------- */
.cta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
}
.cta-box h3 { margin: 0 0 8px; font-size: 1.2rem; }
.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 13px 24px;
  background: var(--wood-dark);
  color: var(--paper) !important;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  transition: background 0.15s ease;
}
.btn:hover, .btn:focus { background: var(--sage-dark); }
.btn-outline {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 22px;
  background: transparent;
  color: var(--wood-dark) !important;
  border: 1.5px solid var(--wood-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: system-ui, sans-serif;
  font-weight: 600;
}
.btn-outline:hover { background: var(--wood-dark); color: var(--paper) !important; }

/* ---------- About-page bio ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 640px) {
  .bio-layout { grid-template-columns: 1fr; }
}
.bio-portrait {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- TAMS callout ---------- */
.about-tams {
  background: #eef2ea;
  border-radius: 10px;
  padding: 28px 30px;
}
.about-tams h2 { color: var(--sage-dark); }
.tams-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 640px) {
  .tams-photos { grid-template-columns: 1fr; }
}
.tams-photos figure { margin: 0; }
.tams-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.tams-photos figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: center;
}

.coming-soon { text-align: center; color: var(--ink-soft); font-style: italic; }

/* ---------- Services list ---------- */
.service-detail {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.service-detail:last-child { border-bottom: none; }
.service-detail .icon {
  width: 34px;
  height: 34px;
  color: var(--sage);
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
footer {
  padding: 44px 0 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
footer a { color: var(--wood-mid); }
footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 48px; }
  main section { padding: 40px 0; }
  .card-grid { gap: 16px; }
}

/* ---------- Guides ---------- */
.guide-meta {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -6px 0 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 52px;
  margin-bottom: 26px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wood-dark);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.steps h3 { margin: 4px 0 6px; }
.steps p { font-size: 0.96rem; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 700;
}
.check-list strong { color: var(--ink); }

.callout {
  border-radius: 8px;
  padding: 22px 24px;
  margin: 24px 0;
}
.callout h3 { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.safety {
  background: #fbeee0;
  border-left: 4px solid var(--wood-warm);
}
.callout.pro {
  background: #eef2ea;
  border-left: 4px solid var(--sage-dark);
}

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.96rem;
}
table.price-table th,
table.price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.price-table thead th {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-light);
  background: var(--wood-dark);
  border-bottom: none;
}
table.price-table tbody tr:last-child td { border-bottom: none; }
table.price-table tbody tr:nth-child(even) { background: var(--cream); }
table.price-table td:first-child { font-weight: 600; color: var(--wood-dark); }
table.price-table td:last-child { color: var(--wood-mid); font-weight: 600; }
.price-source {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}
