/* ==========================================================================
   Silverback Solution — stylesheet
   Change colours in :root below. Everything else inherits.
   ========================================================================== */

:root {
  --ink:      #0f1720;
  --navy:     #1b2b45;
  --navy-dk:  #131f33;
  --accent:   #c2410c;
  --accent-lt:#fdf3ec;
  --hi:       #f5b301;
  --bg:       #ffffff;
  --bg-alt:   #f4f6f9;
  --line:     #dfe5ec;
  --muted:    #5b6675;
  --ok:       #15803d;

  --wrap: 1140px;
  --radius: 4px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1.1em; }

.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .7em;
}
.lead { font-size: 1.15rem; color: #33404f; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dk); color: #c7d3e3; font-size: .82rem;
  padding: 7px 0; letter-spacing: .01em;
}
.topbar .wrap { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar strong { color: #fff; font-weight: 600; }

/* ---------- Header / nav ---------- */
header.site {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 3px;
  background: var(--navy); position: relative; overflow: hidden;
}
.brand .mark::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--hi) 0 6px, var(--navy) 6px 12px);
  opacity: .95;
}
.brand .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11px; background: var(--navy);
}
.brand .name { font-weight: 800; color: var(--navy); font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.1; }
.brand .name span { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px; }

nav.main { margin-left: auto; display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--navy); font-weight: 600; font-size: .93rem; }
nav.main a:hover { color: var(--accent); text-decoration: none; }
nav.main a.active { color: var(--accent); }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: .93rem; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9a3412; color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.navtoggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 8px 12px; font-size: 1.1rem; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-dk);
  color: #e8eef6;
  padding: 76px 0 84px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: repeating-linear-gradient(135deg, var(--hi) 0 18px, var(--navy-dk) 18px 36px);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #b9c8dc; max-width: 56ch; font-size: 1.18rem; }
.hero .eyebrow { color: var(--hi); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-facts {
  display: flex; gap: 46px; flex-wrap: wrap; margin-top: 54px;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-facts div strong { display: block; font-size: 1.55rem; color: #fff; line-height: 1.1; }
.hero-facts div span { font-size: .84rem; color: #93a6bf; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight { padding: 46px 0; }
.section-head { max-width: 720px; margin-bottom: 38px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.quote-layout { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { color: #3d4a5a; font-size: .95rem; margin-bottom: 1em; }
.card .cardlink { margin-top: auto; font-weight: 700; font-size: .9rem; }
.card ul { margin: 0 0 1.1em; padding-left: 18px; font-size: .92rem; color: #3d4a5a; }
.card ul li { margin-bottom: 5px; }

.g-auto { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.cat-card { padding: 0; overflow: hidden; }
.cat-card img.shot { display: block; width: 100%; height: 148px; object-fit: cover; }
.cat-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

/* section-header product image */
.sec-shot {
  width: 100%; max-width: 340px; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); display: block;
}
.sec-split { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; margin-bottom: 34px; }
.sec-split .section-head { margin-bottom: 0; max-width: none; }

.numbered { counter-reset: step; }
.numbered .card { position: relative; padding-top: 30px; }
.numbered .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -1px; left: -1px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: .82rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: var(--radius) 0 var(--radius) 0;
}

/* ---------- Feature rows ---------- */
.feat { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.feat .tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-lt); color: var(--accent); display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; margin-top: 3px;
}
.feat h3 { margin-bottom: .2em; font-size: 1.02rem; }
.feat p { margin: 0; font-size: .94rem; color: #3d4a5a; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; background: #fff; }
table.spec th, table.spec td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; border-bottom: none; }
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec tbody tr:nth-child(even) { background: #fafbfc; }
table.spec td strong { color: var(--navy); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 8px; border-radius: 20px; background: var(--accent-lt); color: var(--accent);
  border: 1px solid #f5d5c0; white-space: nowrap;
}
.tag.std { background: #eef4ff; color: #1e40af; border-color: #cddcf7; }

/* ---------- Callout ---------- */
.callout {
  background: var(--accent-lt); border-left: 4px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }
.callout.navy { background: #eef2f8; border-left-color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 54px 0; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: #bfcede; max-width: 60ch; }
.cta-band .row { display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band .btns { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .89rem; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #c8d2de; border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,65,12,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 10px; }
.checkline input { width: auto; margin-top: 4px; flex: 0 0 auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 24px; }
legend { font-weight: 700; color: var(--navy); font-size: .95rem; padding: 0 8px; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-dk); color: #9fb0c6; padding: 52px 0 26px; font-size: .9rem; }
footer.site h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
footer.site a { color: #cddaea; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site ul li { margin-bottom: 7px; }
footer.site .legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; color: #7d90a8;
}
footer.site .legal p { margin-bottom: .5em; }

/* ---------- Page header ---------- */
.pagehead { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 50px 0 46px; }
.pagehead h1 { margin-bottom: .3em; }
.pagehead p { color: #3d4a5a; max-width: 68ch; margin-bottom: 0; font-size: 1.06rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Anchor nav ---------- */
.anchors { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.anchors a {
  font-size: .86rem; font-weight: 600; padding: 7px 15px; border: 1px solid var(--line);
  background: #fff; border-radius: 30px; color: var(--navy);
}
.anchors a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Prose (terms / privacy) ---------- */
.prose h2 { margin-top: 2em; padding-top: .4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.1em; }
.prose li { margin-bottom: 7px; }
.prose .updated { font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 18px; }

/* ---------- Instant estimator ---------- */
.est-grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }

table.est { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.est thead th {
  background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; text-align: left;
}
table.est thead th.num, table.est td.num { text-align: right; }
table.est td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.est tbody tr:hover { background: #fbfcfd; }
table.est .pname { font-weight: 600; color: var(--navy); display: block; }
table.est .pspec { font-size: .8rem; color: var(--muted); display: block; margin-top: 1px; }
table.est input[type="number"] {
  width: 72px; padding: 7px 8px; border: 1px solid #c8d2de; border-radius: var(--radius);
  font-family: var(--font); font-size: .92rem; text-align: right;
}
table.est input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194,65,12,.12); }
table.est tr.has-qty { background: #fffaf5; }
table.est tr.has-qty:hover { background: #fff5ec; }
.catgroup td {
  background: var(--bg-alt); font-weight: 700; color: var(--navy); font-size: .78rem;
  letter-spacing: .07em; text-transform: uppercase; padding: 9px 12px; border-bottom: 1px solid var(--line);
}

.est-panel {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.est-panel h3 { background: var(--navy); color: #fff; margin: 0; padding: 15px 20px; font-size: .95rem; }
.est-panel .inner { padding: 20px; }
.est-lines { font-size: .87rem; margin-bottom: 14px; max-height: 210px; overflow-y: auto; }
.est-lines .l { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dotted var(--line); }
.est-lines .l span:first-child { color: #3d4a5a; }
.est-lines .l span:last-child { font-weight: 600; white-space: nowrap; }
.est-lines .empty { color: var(--muted); font-style: italic; padding: 6px 0; }
.est-tot { border-top: 2px solid var(--navy); padding-top: 12px; }
.est-tot .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.est-tot .row.big { font-size: 1.22rem; font-weight: 800; color: var(--navy); padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--line); }
.est-tot .row.big span:last-child { color: var(--accent); }
.est-note { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.carriage-flag { font-size: .8rem; padding: 9px 12px; border-radius: var(--radius); margin-top: 12px; }
.carriage-flag.warn { background: #fef3e2; color: #92400e; border: 1px solid #f5d5b0; }
.carriage-flag.ok { background: #eafaf0; color: #14532d; border: 1px solid #c2ead1; }

/* ---------- Accessibility ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Setup banner (disappears once config.js is filled in) ---------- */
.setup-banner {
  background: #fff8e1; border-bottom: 2px solid var(--hi); color: #6b4e00;
  padding: 11px 24px; font-size: .86rem; line-height: 1.5;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.setup-banner code {
  background: rgba(0,0,0,.07); padding: 1px 6px; border-radius: 3px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95em;
}
.setup-banner button {
  background: #6b4e00; color: #fff; border: 0; border-radius: 3px;
  padding: 5px 13px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.setup-banner button:hover { background: #4d3800; }

/* ---------- Form validation & status ---------- */
.field-error {
  color: #b91c1c; font-size: .84rem; font-weight: 600; margin: 6px 0 0;
  display: flex; gap: 6px; align-items: flex-start;
}
.field-error::before { content: "!"; font-weight: 800; }
[aria-invalid="true"] { border-color: #dc2626 !important; background: #fef7f7; }

.form-banner {
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px;
  font-size: .93rem; line-height: 1.55;
}
.form-banner.ok  { background: #eafaf0; border: 1px solid #bfe6cd; color: #14532d; }
.form-banner.err { background: #fef2f2; border: 1px solid #f3c9c9; color: #7f1d1d; }
.form-banner a { color: inherit; text-decoration: underline; }

button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Big tick (thank you page) ---------- */
.tick-big {
  width: 78px; height: 78px; margin: 0 auto; border-radius: 50%;
  background: #eafaf0; border: 3px solid var(--ok); color: var(--ok);
  font-size: 2.4rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
}

/* ---------- Price-promise strip on the estimator ---------- */
.promise {
  display: flex; gap: 14px; align-items: flex-start;
  background: #eafaf0; border: 1px solid #bfe6cd; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 24px;
}
.promise .icon {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok); color: #fff; display: grid; place-items: center;
  font-size: .85rem; font-weight: 800; margin-top: 1px;
}
.promise p { margin: 0; font-size: .93rem; color: #14532d; line-height: 1.55; }
.promise strong { color: #0d3b1e; }

/* ---------- Editable-placeholder highlighting (remove before launch) ---------- */
.ph { background: #fff6d6; border-bottom: 1px dashed #d4a017; padding: 0 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,23,32,.09);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--line); }
  nav.main .btn { margin-top: 12px; width: 100%; border-bottom: none; }
  .navtoggle { display: block; }
  header.site .wrap { position: relative; }
  .g2, .g3, .g4, .quote-layout, .sec-split { grid-template-columns: 1fr; gap: 22px; }
  .sec-shot { max-width: 100%; }
  .est-grid { grid-template-columns: 1fr !important; }
  table.est { min-width: 460px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 60px; }
  .hero-facts { gap: 28px; margin-top: 36px; }
  section { padding: 48px 0; }
  footer.site .cols { grid-template-columns: 1fr; gap: 26px; }
  .topbar .wrap { justify-content: flex-start; gap: 16px; }
}

@media print {
  header.site, footer.site, .topbar, .cta-band, .navtoggle,
  .setup-banner, .skip, .anchors, .hero-cta, .est-panel, #send { display: none !important; }
  body { font-size: 10.5pt; color: #000; }
  section { padding: 12pt 0; }
  .wrap { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  table.spec, table.est { page-break-inside: auto; font-size: 9pt; }
  table.spec tr, table.est tr { page-break-inside: avoid; }
  table.spec thead th, table.est thead th { background: #ddd !important; color: #000 !important; }
  .card, .callout, .promise { page-break-inside: avoid; border: 1px solid #ccc; }
  h1, h2, h3 { page-break-after: avoid; color: #000; }
  .est-grid { display: block; }
  img.sec-shot, .cat-card img.shot { max-width: 200px; }
}
