/* Deck Builders MN: warm and outdoor (ideas/design-directions.md, "Decks").
   Charcoal + cedar + deep green + cream. Archivo for headlines (matches the logo), Source Sans 3 for text. */
:root {
  --ink: #1f2421;
  --ink-2: #3a403c;
  --muted: #5d625e;
  --line: #e4ddd1;
  --cream: #f6f1e9;
  --bg: #ffffff;
  --cedar: #b8743a;
  --cedar-dark: #9a5b26;
  --cedar-light: #e3ab72;
  --green: #2f4a3a;
  --radius: 14px;
  --display: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.link { color: var(--cedar-dark); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.sec { padding: 56px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.cream { background: var(--cream); border-top: 0; }
.sec.cream + .sec { border-top: 0; }
.sec-lede { color: var(--muted); max-width: 42em; margin-top: -4px; margin-bottom: 26px; font-size: 18px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--cream); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand .logo { display: block; height: 28px; width: auto; }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 9px 13px; border-radius: 999px; color: var(--cream); }
.top-links a:hover { background: rgba(246, 241, 233, .1); }
.top-links a.top-cta { background: var(--cedar-dark); color: #fff; margin-left: 6px; }
.top-links a.top-cta:hover { background: var(--cedar); }
.top-links .nav-extra { display: none; }

/* Home hero: full-bleed photo, dark warm overlay, short first step */
.hero-full { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-full picture, .hero-full .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-full .hero-img { object-fit: cover; object-position: 50% 60%; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31, 36, 33, .82) 0%, rgba(31, 36, 33, .72) 55%, rgba(31, 36, 33, .9) 100%); }
.hero-full .wrap { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 40px; }
.hero-full .kicker { color: var(--cedar-light); }
.hero-full h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; max-width: 12em; }
.hero-full .lede { color: rgba(255, 255, 255, .88); max-width: 32em; }
.start { display: grid; gap: 8px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 8px; max-width: 640px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.start label { display: block; padding: 8px 12px; border: 1px solid #cfc7ba; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.start label:focus-within { outline: 2px solid var(--ink); outline-offset: -1px; }
.start select, .start input { display: block; width: 100%; border: 0; background: transparent; padding: 2px 0 0; font: 600 17px/1.35 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
.start .btn { margin: 0; }
.start-note { font-size: 14px; color: rgba(255, 255, 255, .8); margin: 12px 0 0; }

/* Page hero (all other pages): text + the quote card */
.hero { display: grid; gap: 30px; padding-top: 32px; padding-bottom: 44px; align-items: start; }
.hero-band { background: var(--cream); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cedar-dark); margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; }
.lede { font-size: 19px; color: var(--muted); max-width: 32em; margin: 16px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 17px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 22px; height: 22px; flex: none; }
.hero-photo { margin-top: 26px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 10 / 7; background: var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Quote card */
#quote { scroll-margin-top: 84px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg); box-shadow: 0 8px 24px rgba(31, 36, 33, .12); }
.card h2 { font-size: 26px; margin-bottom: 4px; }
.card .sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.fields { border: 1px solid #b9b1a4; border-radius: 10px; overflow: hidden; }
.fields .f { display: block; padding: 10px 12px; border-top: 1px solid #b9b1a4; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.fields .f:first-child { border-top: 0; }
.fields .pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #b9b1a4; }
.fields .pair:first-child { border-top: 0; }
.fields .pair .f { border-top: 0; }
.fields .pair .f + .f { border-left: 1px solid #b9b1a4; }
.fields input, .fields select, .fields textarea {
  display: block; width: 100%; border: 0; padding: 3px 0 0; background: transparent;
  font: 500 16px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0;
}
.fields textarea { resize: vertical; min-height: 44px; }
.fields .f:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 10px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--cedar-dark); color: #fff;
  font: 700 17px/1 var(--sans); padding: 17px 22px; border-radius: 10px; margin-top: 16px;
}
.btn:hover { background: #87501f; }
.btn:focus-visible { outline: 3px solid var(--cedar-light); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-inline { display: inline-block; width: auto; padding: 15px 26px; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.45; }
.err { color: #b42318; font-size: 15px; font-weight: 600; margin: 12px 0 0; }
.done { text-align: center; padding: 18px 4px 6px; }
.done svg { width: 48px; height: 48px; margin: 0 auto 10px; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--muted); }

/* Full form section on the home page */
.quote-sec { display: grid; gap: 30px; align-items: start; }
.quote-sec ol { padding-left: 20px; margin: 0 0 14px; color: var(--ink-2); }
.quote-sec li { margin-bottom: 8px; }

/* Steps */
.steps { display: grid; gap: 24px; counter-reset: s; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cedar-dark); color: #fff; font: 700 16px/1 var(--sans); margin-bottom: 12px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* Project cards with photos */
.pcards { display: grid; gap: 18px; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--bg); transition: box-shadow .15s ease, transform .15s ease; }
.pcard:hover { box-shadow: 0 10px 26px rgba(31, 36, 33, .14); transform: translateY(-2px); }
.pcard img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; background: var(--line); }
.pcard div { padding: 16px 18px 20px; }
.pcard h3 { margin-bottom: 6px; }
.pcard p { color: var(--muted); margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.pcard span { color: var(--cedar-dark); font-weight: 700; font-size: 15px; }

/* Cost teaser band */
.teaser { background: var(--green); color: var(--cream); padding: 52px 0; }
.teaser .wrap { display: grid; gap: 24px; align-items: center; }
.teaser h2 { color: #fff; }
.teaser p { color: rgba(246, 241, 233, .85); max-width: 34em; }
.teaser-figs { display: grid; gap: 10px; }
.teaser-fig { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.teaser-fig b { font-family: var(--display); font-size: 22px; font-weight: 700; color: #fff; white-space: nowrap; }

/* Tiles (guides) */
.tiles { display: grid; gap: 14px; }
.tile { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; background: var(--bg); }
a.tile:hover { border-color: var(--cedar); }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 16px; margin: 0; font-weight: 500; }

/* Tables, notes, prose */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 480px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-top: 1px solid #efe9de; vertical-align: top; }
.tbl thead th { border-top: 0; background: var(--cream); font-size: 14px; font-weight: 700; }
.tbl td:not(:first-child), .tbl th:not(:first-child) { white-space: nowrap; }
.note { background: var(--cream); border-left: 4px solid var(--cedar); border-radius: 8px; padding: 16px 20px; font-size: 16px; }
.note p:last-child { margin: 0; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 38px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--muted); }

/* 42-inch footing diagram */
.footing { margin: 22px 0 8px; background: var(--cream); border-radius: var(--radius); padding: 18px; }
.footing svg { width: 100%; height: auto; }
.footing figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* City links */
.cities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cities a { display: block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 600; background: var(--bg); }
.cities a:hover { border-color: var(--cedar); color: var(--cedar-dark); }

.cities a span { color: var(--muted); font-weight: 500; margin-left: 4px; }

/* Directory: finder, builder cards, company facts */
.start-note a { color: #fff; font-weight: 600; }
.hero .finder { margin: 4px 0 30px; grid-template-columns: 1fr; box-shadow: 0 6px 20px rgba(31, 36, 33, .12); border: 1px solid var(--line); }
.sec-h { font-size: clamp(22px, 2.4vw, 28px); margin: 34px 0 14px; }
.find-status { font-weight: 600; margin: -4px 0 14px; }
.bizs { display: grid; gap: 12px; }
.biz { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--bg); font-weight: 500; }
.biz h3 { font-size: 19px; margin-bottom: 2px; }
.biz h3 a { text-decoration: none; }
.biz h3 a:hover { color: var(--cedar-dark); text-decoration: underline; }
.biz-where { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.biz-dist:not(:empty)::before { content: " \00b7  "; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--green); border: 1px solid #e2d8c6; }
.biz-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; }
.biz-phone { font-weight: 700; color: var(--green); text-decoration: none; font-size: 18px; }
.biz-web { font-weight: 600; color: var(--cedar-dark); text-decoration: none; font-size: 16px; }
.biz-phone:hover, .biz-web:hover { text-decoration: underline; }
.biz-lic { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.bizs + .note, .bizs + p + .note { margin-top: 18px; }
.biz-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.biz-cta .btn { margin: 0; }
.btn-ghost { background: var(--bg); color: var(--ink); border: 1px solid #b9b1a4; }
.btn-ghost:hover { background: var(--bg); border-color: var(--ink); }
.facts { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.facts div { display: grid; gap: 2px; padding: 12px 18px; border-top: 1px solid #efe9de; }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--cedar-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

/* Calculator */
.calc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; background: var(--bg); }
.calc h2 { font-size: 24px; margin-bottom: 14px; }
.calc .dims { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.calc .dims span { padding-bottom: 12px; color: var(--muted); }
.calc label.num { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: 1px solid #b9b1a4; border-radius: 10px; padding: 10px 12px; }
.calc label.num:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.calc input[type=number] { display: block; width: 100%; border: 0; padding: 3px 0 0; font: 700 20px/1.3 var(--sans); background: transparent; color: var(--ink); outline: none; }
.mats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mats label { cursor: pointer; }
.mats input { position: absolute; opacity: 0; }
.mats span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; font-weight: 600; }
.mats input:checked + span { border: 2px solid var(--cedar-dark); padding: 9px 15px; color: var(--cedar-dark); }
.mats input:focus-visible + span { outline: 2px solid var(--cedar); outline-offset: 2px; }
.calc-out { margin-top: 18px; display: grid; gap: 2px; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #efe9de; font-size: 16px; }
.calc-row b { white-space: nowrap; }
.calc-row.big b { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--cedar-dark); }
.calc-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Footer */
.foot { background: var(--ink); color: rgba(246, 241, 233, .85); padding: 46px 0 120px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
.foot h4 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: rgba(246, 241, 233, .9); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .brand { margin-bottom: 14px; }
.foot .brand .logo { height: 24px; }
.foot p { margin: 0 0 8px; max-width: 26em; }
.legal { border-top: 1px solid rgba(246, 241, 233, .15); margin-top: 28px; padding-top: 18px; color: rgba(246, 241, 233, .65); }

/* Mobile bottom bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: var(--cream); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mbar b { display: block; font-size: 16px; color: #fff; }
.mbar span { font-size: 14px; color: rgba(246, 241, 233, .75); }
.mbar a { flex: none; background: var(--cedar-dark); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 20px; border-radius: 10px; }

@media (min-width: 760px) {
  .start { grid-template-columns: 1.3fr 1fr auto; align-items: stretch; }
  .start .btn { padding: 0 24px; }
  .hero .finder { grid-template-columns: 1fr 1fr auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .bizs { grid-template-columns: repeat(2, 1fr); }
  .facts div { grid-template-columns: 220px 1fr; gap: 16px; }
  .teaser .wrap { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot { padding-bottom: 46px; }
}
@media (min-width: 960px) {
  .hero-full .wrap { padding-top: 110px; padding-bottom: 120px; }
  .hero-full::after { background: linear-gradient(90deg, rgba(31, 36, 33, .9) 0%, rgba(31, 36, 33, .66) 55%, rgba(31, 36, 33, .3) 100%); }
  .hero { grid-template-columns: minmax(0, 1fr) 430px; gap: 64px; padding-top: 52px; padding-bottom: 64px; }
  .hero .card { position: sticky; top: 90px; }
  .quote-sec { grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; }
  .pcards { grid-template-columns: repeat(4, 1fr); }
  .sec .bizs { grid-template-columns: repeat(3, 1fr); }
  .top-links .nav-extra, .top-links a.top-cta { display: inline-block; }
  .mbar { display: none; }
}
@media (max-width: 959px) {
  .top-links a.top-cta { display: inline-block; }
}
.brand, .top-links a { white-space: nowrap; }
@media (max-width: 600px) {
  .top-row { height: 58px; }
  .brand .logo { height: 21px; }
  .top-links a.top-cta { padding: 9px 14px; font-size: 14px; margin-left: 0; }
  table.tbl { min-width: 0; font-size: 15px; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .tbl td:not(:first-child), .tbl th:not(:first-child) { white-space: normal; }
}
/* 360px phones: the 21px logo (224px wide) plus the button doesn't fit in 320px. */
@media (max-width: 400px) {
  .top-row { gap: 10px; }
  .brand .logo { height: 19px; }
  .top-links a.top-cta { padding: 8px 12px; }
}
