/* CanopyQuote Co. — shared styles
   Clean, fast, mobile-first. No external fonts, images, or trackers. */

:root {
  --green-dark: #1e4634;
  --green: #2e6b4f;
  --green-light: #e7f0ea;
  --ink: #1c2420;
  --muted: #5a6660;
  --line: #d8e0da;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --accent: #c96f1e;
  --radius: 10px;
  --maxw: 68rem;
}

* { 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(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--green-dark);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.brand span { color: #a8d5ba; }
.site-nav a {
  color: #dcebe2;
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  background: var(--green-light);
  padding: 2.75rem 0 2.25rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--green-dark);
}
.hero p.lede {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 42rem;
  margin: 0 0 1.25rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: #b25f16; }
.hero .fineprint { color: var(--muted); font-size: 0.9rem; margin-top: 0.9rem; }

/* Sections */
section { padding: 2.25rem 0; }
section.alt { background: var(--bg-alt); }
h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 0 0 1rem;
  line-height: 1.25;
}
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; color: var(--green-dark); }
p { margin: 0 0 1rem; }

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.step .num {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: #fff;
}
.card p { margin: 0; color: var(--muted); }

.area-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.2rem;
}
.area-list li { margin-bottom: 0.3rem; break-inside: avoid; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 0.35rem; }
.faq-item p { margin: 0; color: var(--muted); }

/* Table */
table.costs {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.97rem;
}
table.costs th, table.costs td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
table.costs th { background: var(--green-light); color: var(--green-dark); }
.estimate-note {
  background: #fdf3e7;
  border: 1px solid #eccfa8;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
}

/* Form */
.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #b9c6bd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 6rem; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; padding-top: 0.3rem; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.9rem;
  font-size: 0.88rem;
  color: var(--ink);
  margin: 1.1rem 0;
}
.consent input { margin-top: 0.25rem; flex-shrink: 0; }
.form-legal { font-size: 0.85rem; color: var(--muted); }
.thank-you {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.thank-you h3 { margin-top: 0; }

/* Legal pages */
.legal h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.legal h2:first-of-type { margin-top: 0.5rem; }
.legal p, .legal li { color: var(--ink); }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #cfe0d5;
  padding: 2rem 0;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.site-footer a { color: #eaf3ee; }
.site-footer .disclosure { max-width: 52rem; }
.site-footer nav a { margin-right: 1.1rem; }
.site-footer .copyright { margin-top: 1rem; color: #9db8a8; }

@media (min-width: 40rem) {
  .hero h1 { font-size: 2.5rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .area-list { columns: 3; }
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
