/* Honest Plumbing Reviews Brisbane - static site styles */
:root {
  --ink: #16283f;
  --ink-soft: #4a5f78;
  --line: #dde4ee;
  --line-soft: #eef2f7;
  --bg: #eef1f6;
  --card: #ffffff;
  --accent: #1e4b8f;
  --accent-2: #2a6ad0;
  --accent-soft: #e9f0fb;
  --warn: #b23214;
  --warn-bg: #fdf0ec;
  --warn-2: #d94f2a;
  --ok: #1d7a4d;
  --ok-bg: #eaf6ef;
  --amber: #c98a00;
  --shadow-sm: 0 1px 2px rgba(22, 40, 63, .06), 0 2px 6px rgba(22, 40, 63, .05);
  --shadow: 0 2px 6px rgba(22, 40, 63, .07), 0 12px 30px rgba(22, 40, 63, .07);
  --radius: 12px;
  --wrap: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, #e5ecf7 0%, rgba(229,236,247,0) 60%),
    var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-color: rgba(30,75,143,.35); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

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

/* ---------- Header ---------- */
.site-header {
  position: relative;
  color: #fff;
  padding: 56px 0 48px;
  background:
    radial-gradient(900px 400px at 88% 0%, rgba(88,140,224,.45) 0%, rgba(88,140,224,0) 55%),
    linear-gradient(155deg, #12294c 0%, #1e4b8f 60%, #235aa6 100%);
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, rgba(255,255,255,0) 2px 9px);
  pointer-events: none;
}
.site-header .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 700;
  color: #bcd2f0;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 30px;
  background: rgba(255,255,255,.06);
}
.site-header h1 {
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 20ch;
}
.site-header .lede { font-size: 1.1rem; color: #e4ecf8; margin: 0 0 22px; max-width: 62ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-row span {
  font-size: .8rem; color: #d3e0f3;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 5px 11px; border-radius: 8px;
}

/* ---------- Sticky nav ---------- */
.toc {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(22,40,63,.05);
}
.toc nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 2px; padding: 9px 16px; max-width: 1160px; margin: 0 auto;
}
.toc a {
  white-space: nowrap; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  padding: 7px 13px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.toc a:hover, .toc a:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }

/* small screens: single scrolling row, no wrap, no visible scrollbar */
@media (max-width: 720px) {
  .toc nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .toc nav::-webkit-scrollbar { display: none; }
}

/* ---------- Sections ---------- */
main { padding: 8px 0 40px; }
section { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
section:last-child { border-bottom: 0; }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.7rem); margin: 0 0 18px; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2; position: relative; padding-left: 16px;
}
h2::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em;
  width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
h3 { font-size: 1.14rem; margin: 24px 0 8px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 15px; }
section > p { max-width: 68ch; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: var(--radius);
  padding: 18px 20px 18px 22px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.note { border-left: 5px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), #fff 40%); }
.callout.warn { border-left: 5px solid var(--warn-2); background: linear-gradient(90deg, var(--warn-bg), #fff 45%); }
.callout.warn h3 { color: var(--warn); }
.callout.fact { border-left: 5px solid var(--ok); background: linear-gradient(90deg, var(--ok-bg), #fff 45%); }
.callout.fact h3 { color: var(--ok); }
/* first warn callout in the summary = the headline verdict */
#summary .callout.warn:first-of-type { box-shadow: var(--shadow); }
#summary .callout.warn:first-of-type h3 { font-size: 1.28rem; letter-spacing: -.015em; }

/* ---------- Key facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.fact {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.fact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fact .num { font-size: 1.85rem; font-weight: 800; color: var(--accent); line-height: 1.05; letter-spacing: -.02em; }
.fact .lbl { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-2);
  box-shadow: 0 0 0 3px rgba(42,106,208,.12);
}
.timeline li:last-child::before { border-color: var(--warn-2); box-shadow: 0 0 0 3px rgba(217,79,42,.14); }
.timeline .date { font-weight: 700; font-size: .84rem; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.timeline .what { margin-top: 4px; }

/* ---------- Email cards ---------- */
.email {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin: 20px 0; overflow: hidden;
  border-left: 4px solid var(--accent-2);
}
.email.inbound { border-left-color: #98a6b8; }
.email .hdr { padding: 13px 18px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.email.inbound .hdr { background: #f1f3f6; }
.email .hdr .who { font-weight: 700; color: var(--ink); }
.email .body { padding: 18px; }
.email .body p { margin: 0 0 12px; }
.email .body p:last-child { margin-bottom: 0; }
.email .body ul, .email .body ol { margin: 0 0 12px; padding-left: 22px; }
.email .body li { margin-bottom: 6px; }
.redact { background: #16283f; color: #16283f; border-radius: 3px; padding: 0 6px; font-size: .82em; user-select: none; }

/* ---------- Figures / galleries ---------- */
figure { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 22px 0; }
.gallery figure {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 240px; object-fit: cover; display: block; background: var(--line-soft); }
.gallery figcaption { padding: 12px 15px; font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }

.docs { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 22px 0; }
.docs figure { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px; }
.docs img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; transition: filter .15s; }
.docs a:hover img { filter: brightness(.97); }
.docs figcaption { padding: 12px 4px 2px; font-size: .89rem; color: var(--ink-soft); }

/* ---------- Quote spread table ---------- */
.spread { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: .93rem; background: var(--card); box-shadow: var(--shadow-sm); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spread th, .spread td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spread thead th { background: linear-gradient(180deg, #234f92, #1e4b8f); color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.spread tbody tr:nth-child(even) td { background: #f8fafd; }
.spread td.price { font-weight: 800; white-space: nowrap; color: var(--ink); }
.spread tbody tr:last-child td { border-bottom: 0; }
.spread tr.accepted td { background: var(--ok-bg) !important; }
.spread tr.accepted td.price { color: var(--ok); }
.spread .tag { display: inline-block; font-size: .64rem; font-weight: 800; color: #fff; background: var(--ok); padding: 2px 7px; border-radius: 20px; letter-spacing: .04em; vertical-align: middle; }

/* ---------- Third-party review cards ---------- */
.reviews { margin: 20px 0; display: grid; gap: 18px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 20px; border-left: 4px solid var(--warn-2);
  position: relative;
}
.review .rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.review .stars { color: var(--amber); font-size: .98rem; letter-spacing: 2px; }
.review .rname { font-weight: 700; }
.review .rmeta { font-size: .8rem; color: var(--ink-soft); }
.review blockquote { margin: 0; font-size: .97rem; color: #223a56; padding-left: 14px; border-left: 2px solid var(--line); }
.review blockquote p { margin: 0 0 10px; }
.review blockquote p:last-child { margin-bottom: 0; }
.review .rsrc { font-size: .8rem; margin: 10px 0 0; }
.match-note { font-size: .84rem; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; margin-top: 12px; }

/* ---------- Advice list ---------- */
.advice { margin: 16px 0; padding-left: 0; list-style: none; }
.advice li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line-soft); position: relative; }
.advice li::before {
  content: "\2713"; position: absolute; left: 0; top: 11px;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  color: #fff; background: var(--ok); border-radius: 50%; font-weight: 800; font-size: .78rem;
}
.advice li:last-child { border-bottom: 0; }

/* rights section links list */
#rights ul li, #online ul li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  color: #c7d3e3; padding: 40px 0 48px; font-size: .88rem;
  background: linear-gradient(160deg, #16283f, #0f1f33);
}
.site-footer a { color: #a7c2e6; }
.site-footer h3 { color: #fff; margin-top: 0; font-size: 1.15rem; }
.pill { display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 30px; padding: 5px 13px; font-size: .78rem; margin: 0 6px 8px 0; color: #d7e2f1; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding: 42px 0 36px; }
  .gallery img { height: 210px; }
  section { padding: 26px 0; }
  .spread { font-size: .86rem; }
  .spread th, .spread td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
