/* Websites by Bradford General Contracting LLC
   Plain CSS, self-hosted fonts, no external requests. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/publicsans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --card: #fbf9f4;
  --ink: #1c2622;
  --ink-2: #44514b;
  --line: #d6cdbb;
  --green: #1e4a3d;
  --green-2: #163a30;
  --green-ink: #e9efe9;
  --green-soft: #b9cbbf;
  --clay: #9c4424;
  --clay-soft: #f0dccf;
  --focus: #c0622f;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #a99f8b var(--paper);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--clay);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: #fff; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--clay); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 50;
}
.skip:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.brand span { font-weight: 500; color: var(--ink-2); }
.brand:hover { color: var(--ink); }
.head-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.head-call svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(22, 58, 48, 0.55);
}
.btn-primary:hover { background: var(--green-2); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 58, 48, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36rem;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero .plain {
  margin-top: 1.5rem;
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: 34rem;
}

/* The phone: an example of a quote request arriving */
.phone-fig { margin: 0; justify-self: center; width: 100%; max-width: 19rem; }
.phone {
  background: #17201c;
  border-radius: 2.4rem;
  padding: 0.7rem;
  box-shadow:
    0 30px 60px -30px rgba(28, 38, 34, 0.55),
    0 12px 24px -12px rgba(28, 38, 34, 0.35);
}
.phone-screen {
  background: #f7f7f5;
  border-radius: 1.8rem;
  padding: 1.1rem 0.9rem 1.6rem;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.phone-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e3e3df;
  margin-bottom: 0.35rem;
}
.phone-notch { width: 4.5rem; height: 0.35rem; border-radius: 99px; background: #d8d8d3; margin-bottom: 0.6rem; }
.phone-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.phone-avatar svg { width: 1.15rem; height: 1.15rem; }
.phone-from { font-size: 0.78rem; font-weight: 600; color: #3a3f3c; }
.bubble {
  align-self: flex-start;
  max-width: 90%;
  background: #e6e7e3;
  color: #1c2622;
  border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.45;
}
.bubble b { font-weight: 600; }
.bubble-time { font-size: 0.7rem; color: #5d635f; text-align: center; }
.phone-fig figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }
.rule { border-top: 1px solid var(--line); }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--clay);
  margin-bottom: 0.9rem;
  font-variant-numeric: lining-nums;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--ink-2); }

/* Plans */
.plans-band { background: var(--paper-2); }
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.plan {
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
}
.plan-monthly {
  background: var(--green);
  color: var(--green-ink);
  box-shadow: 0 24px 48px -28px rgba(22, 58, 48, 0.7);
}
.plan-own {
  background: var(--card);
  border: 1px solid var(--line);
}
.plan h3 { font-size: 1.5rem; }
.plan-monthly h3 { color: #fff; }
.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0 0.35rem;
  font-family: var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.price strong { font-size: clamp(3rem, 6vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.price span { font-family: var(--sans); font-size: 1.05rem; }
.plan-monthly .price strong { color: #fff; }
.price-note { font-weight: 600; }
.plan-monthly .price-note { color: #fff; }
.plan ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}
.plan-monthly ul { border-top-color: rgba(233, 239, 233, 0.25); }
.plan li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.plan li svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--clay); }
.plan-monthly li svg { color: #e8b897; }
.plan .fine {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.plan-monthly .fine { color: var(--green-soft); }
.plan-own .fine { color: var(--ink-2); }
.plans-foot {
  margin-top: 1.75rem;
  color: var(--ink-2);
  max-width: 46rem;
}

/* Fit */
.fit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.fit-list { list-style: none; margin: 0; padding: 0; }
.fit-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.8rem;
}
.fit-list li:first-child { border-top: 1px solid var(--line); }
.fit-list svg { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; color: var(--green); }
.fit-aside {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.fit-aside p + p { margin-top: 1.1rem; }
.fit-aside .small { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--ink-2); line-height: 1.6; }

/* Questions */
.qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  margin: 0;
}
.qa dt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.5rem; }
.qa dd { margin: 0; color: var(--ink-2); }

/* Contact */
.contact-band { background: var(--green); color: var(--green-ink); }
.contact-band h2 { color: #fff; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact .lede { margin-top: 1rem; font-size: 1.15rem; color: var(--green-ink); max-width: 32rem; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.contact .btn-primary { background: #fff; color: var(--green-2); box-shadow: none; }
.contact .btn-primary:hover { background: var(--clay-soft); color: var(--green-2); }
.contact .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.contact .btn-ghost:hover { background: #fff; color: var(--green-2); }
.contact-card { margin: 0; display: grid; gap: 1.25rem; }
.contact-card div { border-top: 1px solid rgba(233, 239, 233, 0.25); padding-top: 1rem; }
.contact-card dt { font-size: 0.9rem; color: var(--green-soft); margin-bottom: 0.15rem; }
.contact-card dd { margin: 0; font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; }
.contact-card a { color: #fff; }
.contact-card a:hover { color: var(--clay-soft); }
.contact-band :focus-visible { outline-color: #f2c3a5; }

/* ---------- Document pages (terms, privacy) ---------- */
.doc-head { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.doc-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.doc-head p { margin-top: 1rem; color: var(--ink-2); max-width: 44rem; font-size: 1.1rem; }
.doc-meta { font-size: 0.95rem !important; }
.doc {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: 1.5rem;
  font-size: 0.95rem;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.toc h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--clay); text-decoration: underline; }
.prose { max-width: 42rem; }
.prose section { padding-top: 0.5rem; }
.prose section + section { margin-top: 2.5rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-bottom: 0.9rem; scroll-margin-top: 1.5rem; }
.prose h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 1.5rem 0 0.5rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 0.9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0; }
.prose li + li { margin-top: 0.45rem; }
.prose li::marker { color: var(--clay); }
.prose strong { font-weight: 600; }
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-top: 1.1rem;
}
.callout p { font-size: 1rem; }
.tbd {
  background: var(--clay-soft);
  color: #5a2512;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.75rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: end;
}
.site-foot address { font-style: normal; line-height: 1.7; }
.site-foot strong { color: var(--ink); font-weight: 600; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--clay); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: flex-end; }
.foot-links li { list-style: none; }
.foot-links { margin: 0; padding: 0; }
.copy { grid-column: 1 / -1; font-size: 0.88rem; }

/* Phone call bar (index only) */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 18ch; }
  .phone-fig { justify-self: start; max-width: 17.5rem; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .fit, .contact { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps li::before { font-size: 2.2rem; margin-bottom: 0.6rem; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .brand { font-size: 1.05rem; }
  .head-call .num { display: none; }
  .head-call { min-height: 2.75rem; padding: 0 0.9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--green); }

  .has-callbar { padding-bottom: 4.75rem; }
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 0 -8px 20px -14px rgba(28, 38, 34, 0.4);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 2.9rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .phone-fig { max-width: 15rem; }
  .phone-screen { min-height: 0; }
}

@media print {
  .site-head, .callbar, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { display: block; }
  a { color: #000; }
}
