/* Ottawa Driveway Co. — one stylesheet for the whole site. */

:root {
  --ground:        #ffffff;
  --band:          #f2f4f3;
  --band-deep:     #e7eae9;
  --ink:           #14181b;
  --ink-2:         #3d474d;
  --muted:         #6b767d;
  --line:          #d8dedc;
  --line-soft:     #e8ecea;

  /* Paver clay — the build/installation side of the site. */
  --clay:          #9c4d1b;
  --clay-deep:     #7d3d14;
  --clay-wash:     #f8ece4;

  /* Water — the permeable paving and stormwater rebate side. */
  --water:         #1a4e4a;
  --water-wash:    #e3eeec;

  --focus:         #1a4e4a;
  --radius:        4px;
  --shell:         1120px;
  --measure:       68ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--clay-deep); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(30px, 5.2vw, 46px); }
h2 { font-size: clamp(23px, 3.2vw, 31px); margin-top: 2.4em; }
h3 { font-size: 19px; margin-top: 1.9em; }
h2 + h3 { margin-top: 1.1em; }

p, ul, ol, table, .callout, .note { margin: 1.05em 0 0; }
p, li { max-width: var(--measure); }
li { margin-top: .35em; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: 20px; }

/* ---------- header ---------- */

.topbar {
  background: var(--ink);
  color: #e9edee;
  font-size: 14px;
}
.topbar .shell { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; justify-content: space-between; padding-block: 7px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar span { color: #a7b1b4; }

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(6px);
}
header.site .shell { display: flex; align-items: center; gap: 20px; padding-block: 14px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo .mark {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 3px;
  background:
    linear-gradient(135deg, var(--clay) 0 50%, var(--clay-deep) 50% 100%);
  position: relative;
}
.logo .mark::after {
  content: ""; position: absolute; inset: 7px;
  border: 2px solid rgba(255,255,255,.85); border-radius: 1px;
}
.logo b { font-family: "Archivo", sans-serif; font-size: 18px; letter-spacing: -.02em; }
.logo em { display: block; font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

nav.main { display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; padding: 8px 11px; border-radius: var(--radius);
}
nav.main a:hover { background: var(--band); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--clay-deep); background: var(--clay-wash); }

.btn {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 15px; padding: 11px 19px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .13s ease, border-color .13s ease;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--band); color: var(--ink); }
.btn-water { background: var(--water); color: #fff; }
.btn-water:hover { background: #123b38; color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.main { display: none; width: 100%; }
  header.site .shell { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-block; font: inherit; font-size: 14px; font-weight: 600;
    background: var(--band); border: 1px solid var(--line); color: var(--ink);
    padding: 9px 13px; border-radius: var(--radius); cursor: pointer;
  }
  header.site.open nav.main { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
  header.site.open nav.main a { padding: 11px 8px; border-top: 1px solid var(--line-soft); border-radius: 0; }
  .header-cta { display: none; }
}

/* ---------- hero ---------- */

.hero { border-bottom: 1px solid var(--line); background: var(--band); }
.hero .shell { padding-block: clamp(34px, 6vw, 62px); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); margin-top: 16px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero.water { background: var(--water-wash); }

.eyebrow {
  font-family: "Archivo", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); margin: 0 0 12px;
}
.eyebrow.water { color: var(--water); }

.crumbs { font-size: 13.5px; color: var(--muted); padding-block: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; max-width: none; }
.crumbs li { margin: 0; max-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 7px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- layout ---------- */

main { display: block; }
.body-wrap { padding-block: 8px 56px; }
.cols { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 52px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0,1fr); gap: 34px; } }

aside.rail { position: sticky; top: 92px; display: grid; gap: 18px; }
@media (max-width: 960px) { aside.rail { position: static; } }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground); padding: 20px;
}
.card h3 { margin-top: 0; font-size: 17px; }
.card p, .card li { font-size: 15px; }
.card.tint { background: var(--band); }
.card.water { background: var(--water-wash); border-color: #c5dbd7; }

/* ---------- content furniture ---------- */

.callout {
  border-left: 4px solid var(--clay); background: var(--clay-wash);
  padding: 15px 18px; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.water { border-left-color: var(--water); background: var(--water-wash); }
.callout.alert { border-left-color: #9a1f1f; background: #fbeaea; }
.callout p:first-child { margin-top: 0; }
.callout .tag {
  display: block; font-family: "Archivo", sans-serif; font-size: 11.5px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 5px;
}
.callout.water .tag { color: var(--water); }
.callout.alert .tag { color: #9a1f1f; }

.table-wrap { overflow-x: auto; margin-top: 1.2em; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 440px; }
caption { text-align: left; font-size: 13.5px; color: var(--muted); padding-bottom: 8px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-family: "Archivo", sans-serif; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--band); border-bottom-color: var(--line); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq { margin-top: 1.4em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-family: "Archivo", sans-serif;
  font-weight: 600; font-size: 17px; list-style: none;
  display: flex; gap: 12px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--clay); font-size: 19px; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::before { content: "\2013"; }
.faq details > *:not(summary) { margin-bottom: 15px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2em; padding: 0; list-style: none; }
.pills li { margin: 0; max-width: none; }
.pills a {
  display: inline-block; font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--ink-2); background: var(--band); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.pills a:hover { background: var(--band-deep); color: var(--ink); }

.linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 1.3em; }
.linkgrid a {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px;
  transition: border-color .13s ease, background .13s ease;
}
.linkgrid a:hover { border-color: var(--clay); background: var(--clay-wash); }
.linkgrid b { font-family: "Archivo", sans-serif; font-size: 16px; display: block; }
.linkgrid span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

.photo-slot {
  margin-top: 1.4em; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--band); padding: 34px 20px; text-align: center;
  color: var(--muted); font-size: 14px;
}
.photo-slot b { display: block; color: var(--ink-2); font-family: "Archivo", sans-serif; font-size: 15px; }

/* ---------- band / CTA ---------- */

.band { background: var(--band); border-block: 1px solid var(--line); }
.band .shell { padding-block: 44px; }
.band.dark { background: var(--ink); border-color: var(--ink); color: #e9edee; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark p { color: #bcc5c8; }
.band.dark a:not(.btn) { color: #fff; }

/* ---------- form ---------- */

.quote { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); padding: clamp(20px, 3vw, 30px); }
.quote h2 { margin-top: 0; }
.quote .sub { color: var(--ink-2); font-size: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 22px; }
@media (max-width: 680px) { .fields { grid-template-columns: minmax(0,1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground); color: var(--ink); width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); }
.req { color: var(--clay); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: auto; margin-top: 4px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.form-foot .btn-primary { font-size: 16px; padding: 13px 24px; }
.form-note { font-size: 13px; color: var(--muted); max-width: 46ch; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 15px; font-weight: 600; }
.form-status.err { color: #9a1f1f; }
.form-status.ok { color: var(--water); }
.field-error { border-color: #9a1f1f !important; }
.err-msg { font-size: 13px; color: #9a1f1f; }

/* ---------- eligibility checker ---------- */

.checker { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.checker-head { background: var(--water); color: #fff; padding: 18px 20px; }
.checker-head h2 { color: #fff; margin: 0; font-size: 21px; }
.checker-head p { color: #cfe2df; font-size: 14.5px; margin-top: 6px; }
.checker-body { padding: 20px; display: grid; gap: 16px; }
.checker .result { border-radius: var(--radius); padding: 17px 19px; font-size: 15.5px; }
.checker .result.yes { background: var(--water-wash); border: 1px solid #c5dbd7; }
.checker .result.maybe { background: #fdf4e3; border: 1px solid #ecd9ac; }
.checker .result.no { background: var(--band); border: 1px solid var(--line); }
.checker .result b { display: block; font-family: "Archivo", sans-serif; font-size: 17px; margin-bottom: 6px; }

/* ---------- footer ---------- */

footer.site { background: var(--ink); color: #b9c2c5; font-size: 15px; padding-block: 46px 30px; }
footer.site .shell { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-top: 7px; max-width: none; }
footer.site a { color: #dfe5e7; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site p { font-size: 14px; color: #939ea2; }
.legal { border-top: 1px solid #2a3135; margin-top: 34px; padding-top: 18px; font-size: 13px; color: #8b9599; }
.legal p { max-width: 90ch; font-size: 13px; }
