/* Thermosystems static site styles: "Blueprint" look (design option B1, chosen by Nic 16 Oct 2026).
   IBM Plex Sans + Mono, logo yellow #FFCA05 and near-black #231F20, navy ink, ruled grids, square corners. */
:root {
  --yellow: #FFCA05;
  --black: #231f20;
  --navy: #0b2a4a;
  --link: #0b4f8a;
  --ink: #1c2430;
  --body: #3a4656;
  --muted: #5a6676;
  --line: #d9e0e8;
  --field: #b8c3cf;
  --bg: #f4f6f8;
  --white: #fff;
  --radius: 2px;
  --wrap: 1280px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #073863; }
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 2.6rem 0 .9rem; }
h3 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--white); padding: 8px 12px; }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--link); margin: 0 0 1.2rem; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-block; background: var(--yellow); color: var(--black); text-decoration: none; padding: .95rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--yellow); cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn:hover { background: #f0bd00; border-color: #f0bd00; color: var(--black); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--navy); font-weight: 600; }
.btn-line:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-sm { padding: .7rem 1.2rem; font-size: .95rem; }
.btn-block { display: block; text-align: center; }

/* Top bar */
.topbar { background: var(--yellow); color: var(--black); font-family: var(--mono); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: var(--black); font-weight: 500; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 640px) { .topbar-inner > span:first-child { display: none; } }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 24px; }
.logo { text-decoration: none; flex: none; }
.logo img { height: 64px; width: auto; }
.wordmark { font-weight: 700; font-size: 1.6rem; color: var(--black); }
.menu { display: flex; align-items: center; gap: 20px; }
.nav-list { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; align-items: center; }
.nav-list > li > a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: .55rem .8rem; color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.nav-list > li > a:hover, .sub-toggle:hover { border-bottom-color: var(--yellow); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--yellow); }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; min-width: 320px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--yellow); box-shadow: 0 16px 32px rgba(11,42,74,.12); display: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub li + li { border-top: 1px solid var(--line); }
.sub a { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; font-size: 15px; }
.sub a:hover, .sub a[aria-current="page"] { background: #fff6cc; color: var(--black); }
.menu-toggle { display: none; background: var(--navy); color: var(--white); border: 0; border-radius: var(--radius); padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1180px) {
  .header-inner { min-height: 80px; }
  .logo img { height: 52px; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 12px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .menu.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .sub-toggle { width: 100%; justify-content: space-between; padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .sub li + li { border-top: 0; }
  .header-quote { text-align: center; }
}
@media (max-width: 480px) { .logo img { height: 44px; } }

/* Hero: white split with a labelled figure */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 2.2rem 0 0; }
.hero-fig { flex: 1 1 440px; min-width: 0; margin: 0; position: relative; }
.hero-fig img { width: 100%; height: clamp(260px, 34vw, 460px); object-fit: cover; border: 1px solid var(--navy); }
.hero-fig .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-fig .slide.on { opacity: 1; }
.hero-fig figcaption { z-index: 1;  position: absolute; left: 0; bottom: 0; background: var(--yellow); color: var(--black); font-family: var(--mono); font-size: 13px; padding: 10px 14px; }
@media (max-width: 640px) { .hero-inner { gap: 28px; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 1rem; font-family: var(--mono); font-size: .8rem; color: var(--muted); text-transform: uppercase; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Content with side panel */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.content-grid:has(.side-panel) { grid-template-columns: minmax(0, 1fr) 340px; }
.prose { max-width: 820px; color: var(--body); }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: 18px; border-top: 4px solid var(--yellow); }
.prose h3 { color: var(--navy); }
.prose h4 { color: var(--navy); font-weight: 600; font-size: 1.3rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--link); }
.side-panel { position: sticky; top: 124px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 24px; }
.side-panel > .mono { margin: 0 0 14px; color: var(--link); }
.side-panel .spec { grid-template-columns: 58px 1fr; gap: 10px 12px; margin: 0 0 20px; font-size: 15px; }
@media (max-width: 960px) {
  .content-grid, .content-grid:has(.side-panel) { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .side-panel { position: static; }
}
@media (max-width: 720px) {
  .side-panel { display: none; }
}

/* Spec lists (contact details) */
.spec { display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; margin: 28px 0 0; line-height: 1.55; }
.spec dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; overflow-wrap: break-word; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 2rem 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 24px 16px; }
.feature h3 { font-family: var(--mono); font-size: .9rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--link); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .6rem 0 0; }

/* Contact page */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.card { background: var(--white); padding: 4px 24px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card h3 { margin-top: 1rem; font-family: var(--mono); font-size: .85rem; font-weight: 500; text-transform: uppercase; color: var(--link); }
.map { margin-top: 24px; overflow: hidden; border: 1px solid var(--navy); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); color: var(--ink); padding: .4rem .8rem; font-size: .95rem; }

/* Gallery */
.gallery { padding-bottom: 72px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.gallery figure { margin: 0; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: .7rem 0 0; font-size: .92rem; color: var(--ink); }
.gallery figcaption .mono { color: var(--link); margin-right: 6px; }
.gallery .zoom { display: block; cursor: zoom-in; overflow: hidden; }
.gallery .zoom img { transition: transform .4s ease; }
.gallery .zoom:hover img { transform: scale(1.04); }

/* Product cards: ruled grid */
.product-cards { padding-bottom: 72px; }
.rule-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; border-bottom: 4px solid var(--yellow); padding-bottom: 14px; }
.rule-head h2 { margin: 0; }
.pcard-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-left: 1px solid var(--line); }
.pcard-grid li { display: flex; }
.pcard { display: block; width: 100%; padding: 24px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s ease; }
.pcard picture { display: block; overflow: hidden; }
.pcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.pcard-no { display: block; font-family: var(--mono); font-size: 13px; color: var(--link); margin-top: 16px; }
.pcard-name { display: block; font-size: 1.3rem; font-weight: 600; margin-top: 2px; line-height: 1.25; }
.pcard-name::after { content: " \2192"; color: var(--link); }
.pcard:hover { background: #fffbea; color: var(--ink); }
.pcard:hover img { transform: scale(1.04); }
.pcard:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.home-cards { padding-top: 16px; }
@media (max-width: 560px) {
  .pcard-grid { grid-template-columns: 1fr 1fr; }
  .pcard { padding: 12px; }
  .pcard-name { font-size: 1rem; }
}

/* Enquiry */
.enquiry { background: var(--bg); padding: 88px 0; border-top: 1px solid var(--line); }
.enquiry-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.enquiry h2 { margin-top: 0; }
.enquiry-grid > div > p { font-size: 1.1rem; color: var(--body); }
.enquiry-form { background: var(--white); padding: 32px; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0; }
.field.wide, .enquiry-form button, .form-status { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea { width: 100%; font: inherit; padding: .8rem; border: 1px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--link); outline-offset: 0; border-color: var(--link); }
.enquiry-form button { padding: 1rem; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a3261a; }
@media (max-width: 860px) { .enquiry-grid { grid-template-columns: 1fr; gap: 28px; } .enquiry { padding: 56px 0; } }
@media (max-width: 520px) { .enquiry-form { grid-template-columns: 1fr; padding: 20px; } }

/* Footer */
.site-footer { background: var(--white); border-top: 6px solid var(--yellow); color: var(--muted); padding: 48px 0 0; font-size: .95rem; }
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; letter-spacing: .04em; }
.footer-brand img { height: 56px; width: auto; }
.footer-est { margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.6fr 1.1fr; gap: 32px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin: .35rem 0; }
.plain.cols { columns: 2; column-gap: 20px; }
.plain span { color: var(--muted); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: .85rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .plain.cols { columns: 1; } }

/* Reveal on scroll (content on first screen shows immediately) */
.js .reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal > .in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal > * { opacity: 1; transform: none; transition: none; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(11,42,74,.9); }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border: 1px solid var(--yellow); }
.lightbox p { color: #fff; text-align: center; margin: .5rem 0 0; font-weight: 600; }
.lightbox button { position: fixed; top: 14px; right: 18px; background: var(--yellow); color: var(--black); border: 0; border-radius: var(--radius); width: 40px; height: 40px; font-size: 1.4rem; cursor: pointer; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 720px) {
  .action-bar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,42,74,.08); }
  .action-bar .btn { text-align: center; padding: .8rem; }
  body { padding-bottom: 72px; }
}

/* Post-read additions (home product lines, How we work band); only used when THERMO_POST_READ=1 */
.pcard-blurb { display: block; font-size: .92rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.process { background: var(--navy); color: #c9d6e4; padding: 88px 0; }
.process .mono { color: var(--yellow); margin: 0 0 12px; }
.process h2 { color: #fff; margin: 0 0 48px; max-width: 760px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { border-top: 3px solid var(--yellow); padding-top: 20px; }
.step p { margin: 10px 0 0; }
@media (max-width: 560px) { .pcard-blurb { display: none; } .process { padding: 56px 0; } }
