/* brand.css — the timber.bid family look, for lumber.bid pages.
 *
 * Deliberately LIGHT-ONLY, matching timber.bid itself (which renders light for
 * everyone): one company, one visual language, and two screenshots side by
 * side should read as siblings. The earlier dark-mode support was dropped on
 * purpose when this file landed — a single committed look, painted explicitly.
 *
 * Palette: timber.bid green #2E7D32 on white; amber stays reserved for
 * firewood/money surfaces; red is errors only (house rules). */

:root {
  --brand: #2E7D32;
  --brand-soft: #eaf4ea;
  --bg: #ffffff;
  --surface: #fafbfa;
  --border: #e3e7e3;
  --text: #1c2420;
  --muted: #5f6b63;
  --err: #B3261E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; width: 100%; max-width: 50rem; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }

/* The family header: back circle + wordmark + subtitle (timber.bid's pattern). */
.brand-head { display: flex; align-items: center; gap: .85rem; padding: .5rem 0 1.25rem; }
.brand-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: 1.1rem;
}
.brand-back:hover { background: var(--brand-soft); }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--brand); line-height: 1.1; }
.brand-name a { color: inherit; text-decoration: none; }
.brand-sub { font-size: .8rem; color: var(--muted); }

h1 { font-size: clamp(1.7rem, 5vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; margin: .25rem 0 .5rem; }
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 44rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.card h2 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.card p { margin: 0 0 .85rem; }
.card p:last-child { margin-bottom: 0; }
.card a:not(.cta) { color: var(--brand); }  /* :not(.cta) is load-bearing - this rule sits
     AFTER a.cta and has equal specificity, so without it a card CTA got
     colour var(--brand) on background var(--brand): invisible text. */

/* Photo drop boxes — the hero, exactly the timber.bid /estimate pattern. */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 0 0 .75rem; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shot {
  border: 2px dashed var(--border); border-radius: 12px; background: #fff;
  padding: 1.1rem .8rem; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.shot:hover, .shot:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.shot.filled { border-style: solid; border-color: var(--brand); }
.shot .cam { width: 44px; height: 34px; margin: .4rem auto .6rem; display: block; color: var(--brand); }
.shot img.preview { max-width: 100%; max-height: 96px; border-radius: 8px; display: block; margin: 0 auto .5rem; }
.shot .t { font-weight: 700; font-size: .95rem; }
.shot .t .opt {
  font-weight: 600; font-size: .68rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; vertical-align: middle;
}
.shot .d { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.shot input[type="file"] { display: none; }
.shots-hint { font-size: .85rem; color: var(--muted); font-style: italic; text-align: center; margin: 0 0 1rem; }

/* The big full-width CTA, with its disabled state (timber.bid's pattern). */
button.cta-big {
  display: block; width: 100%;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: .95rem 1.5rem; border-radius: 10px;
}
button.cta-big:hover { filter: brightness(1.08); }
button.cta-big:disabled { background: #a7cba9; cursor: default; filter: none; }
button.cta-big:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.cta-helper { text-align: center; font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }

a.cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: 8px;
}
a.cta:hover { filter: brightness(1.08); }

/* Trust list — icon-bullet rows like "What vetted means here". */
.trust { list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; gap: .7rem; margin-bottom: .9rem; }
.trust li:last-child { margin-bottom: 0; }
.trust .ico { flex: 0 0 auto; color: var(--brand); width: 22px; height: 22px; margin-top: .15rem; }
.trust strong { display: block; }
.trust .why { color: var(--muted); font-size: .92rem; }

/* Form controls */
label.f { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 .25rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
select, input[type="number"], input[type="email"], input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem;
}
select:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.opts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.opts label { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; cursor: pointer; }
.opts input { accent-color: var(--brand); }

/* Result rows */
#est-result { border-color: var(--brand); }
.est-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.est-row span { color: var(--muted); }
.est-net strong { color: var(--brand); font-size: 1.15rem; }
.est-verdict { margin: .9rem 0 0; font-weight: 600; }
.est-verdict.ok { color: var(--brand); }
.est-flags { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.est-flags li { margin-bottom: .25rem; }

/* Status lines + fine print */
.wl-status { font-size: .9rem; margin: .25rem 0 0; }
.wl-status.ok { color: var(--brand); font-weight: 600; }
.wl-status.err { color: var(--err); }
.wl-fine { font-size: .78rem; color: var(--muted); margin: .8rem 0 0; }

/* Prose section — "How it works", timber.bid style. */
.prose { max-width: 46rem; margin: 2.25rem auto 0; }
.prose h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.prose p { margin: 0 0 1rem; color: var(--text); }
.prose strong { font-weight: 700; }

footer { border-top: 1px solid var(--border); padding: 1.75rem 1.5rem 2.5rem; }
.footer-inner { max-width: 50rem; margin: 0 auto; font-size: .8rem; color: var(--muted); }
.footer-inner p { margin: 0 0 .4rem; }
.footer-inner a { color: var(--muted); }
