/* ZOBO Heater — industrialheaterfactory.com */
:root {
  --primary: #1E3A5F;
  --secondary: #3B82A6;
  --accent: #F59E0B;
  --text: #1F2937;
  --bg: #F8FAFC;
  --muted: #5B6676;
  --line: #DCE3EB;
  --surface: #FFFFFF;
  --tint: #EEF3F8;
  --r-card: 10px;
  --r-btn: 8px;
  --r-table: 8px;
  --max: 1280px;
  --article: 720px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); color: var(--primary); line-height: 1.2; margin: 0 0 .6em; font-variant-numeric: tabular-nums; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num, .band-val, .spec-table td, .spec-compare td, .matrix td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); min-width: 0; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem/1 var(--f-body); padding: .85em 1.3em; border-radius: var(--r-btn); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #111827; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-dark { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:active { opacity: .7; }
@media (hover: hover) {
  .btn-accent:hover { background: #E08E06; }
  .btn-primary:hover { background: #16304F; }
  .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
  .btn-ghost-dark:hover { background: var(--tint); }
  .link-arrow:hover { text-decoration: underline; }
  .cat-card:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,58,95,.10); }
  .chip:hover { border-color: var(--secondary); }
  .nav-list a:hover { color: var(--accent); }
  .matrix tbody tr:hover { background: var(--tint); }
}

/* Header & nav */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 50; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.brand { color: #fff; text-decoration: none; font: 700 1.25rem var(--f-head); white-space: nowrap; }
.brand-mark { color: var(--accent); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; color: #fff; text-decoration: none; padding: .6em .75em; font-weight: 500; transition: color .2s var(--ease); }
.nav-list a[aria-current="page"] { color: var(--accent); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border-radius: var(--r-card); box-shadow: 0 12px 30px rgba(15,30,50,.18); display: none; }
.sub a { color: var(--text); padding: .5em 1em; }
.has-sub:focus-within .sub { display: block; }
@media (hover: hover) { .has-sub:hover .sub { display: block; } .sub a:hover { background: var(--tint); color: var(--primary); } }
.nav-toggle { display: none; }
.nav-cta { padding: .6em 1em; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 24px; height: 2px; background: #fff; display: block; }
  .nav-toggle:active { opacity: .7; }
  .bar { flex-wrap: wrap; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 16px; }
  html.js .nav { display: none; }
  html.js.nav-open .nav { display: flex; }
  .nav-list { flex-direction: column; }
  .sub { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 12px; min-width: 0; }
  .sub a { color: rgba(255,255,255,.85); font-size: .95rem; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { background: var(--primary); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font: 600 .8rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--secondary); margin-bottom: .6em; }
.hero .eyebrow { color: var(--accent); }
.hero-sub { font-size: 1.125rem; color: #E2E8F0; max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-filter { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-filter a { display: inline-block; padding: .4em .9em; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; text-decoration: none; font-size: .9rem; transition: border-color .2s var(--ease); }
.hero-filter a:active { opacity: .7; }
@media (hover: hover) { .hero-filter a:hover { border-color: var(--accent); } }

/* Media boxes: fixed ratio so remote images never shift layout */
.media { background: #fff; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.media-hero { aspect-ratio: 16 / 10; }
.hero .media-hero img { object-fit: cover; object-position: center 85%; } /* K350 photo: keep the heater and wheels in frame */
.media-card { aspect-ratio: 4 / 3; border-radius: var(--r-card) var(--r-card) 0 0; }
.media-empty { display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--muted); font-size: .9rem; text-align: center; padding: 16px; }
.media-gallery { max-width: 640px; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--tint); }
.section-cta { background: var(--primary); color: #E2E8F0; }
.section-cta h2 { color: #fff; margin-top: 0; }
.section-cta a { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head h2 { margin-top: 0; }
.page-head { padding: 24px 0 32px; }
.lede { font-size: 1.125rem; color: #374151; max-width: 46em; }
.note, .spec-note { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.split-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.split-1-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.main-col, .side-col, .article, .article-side { min-width: 0; }
.head-media { align-items: center; }
.head-cta { display: flex; justify-content: flex-end; align-items: center; height: 100%; }
.main-split { padding-bottom: 56px; }
.main-col > h2:first-child, .main-col > .gallery:first-child { margin-top: 0; }
.sticky { position: sticky; top: 88px; display: grid; gap: 20px; }
.narrow-center { max-width: 720px; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.narrow-center .hero-ctas { justify-content: center; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; text-decoration: none; color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.cat-card:active { transform: scale(.98); }
.cat-card h3 { margin: .3em 0 .5em; font-size: 1.02rem; }
/* full-bleed model photo at the top of each card; same ratio on every card so rows line up */
.media-cat { flex: none; aspect-ratio: 4 / 3; margin: -18px -18px 14px; border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 1px solid var(--line); }
.media-cat.media-empty { font-size: .8rem; }
.cat-fuel { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--secondary); font-weight: 600; }
.cat-rep { font-size: .875rem; color: var(--muted); margin: 0 0 12px; }
.cat-count { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--primary); }

/* Spec band */
.spec-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: 20px 0 8px; }
.spec-band-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band-cell { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.band-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.band-val { font-size: 1.05rem; color: var(--primary); font-weight: 500; }
.band-sub { font-size: .75rem; color: var(--muted); }

/* Tables */
.model-matrix { min-width: 0; max-width: 100%; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-table); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .925rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; }
thead th a { color: #fff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--primary); }
.spec-table th { width: 38%; background: #F4F7FA; }
.matrix tbody tr { transition: background-color .15s var(--ease); }
.matrix tbody th a { font-family: var(--f-mono); font-weight: 500; }
.matrix-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; min-width: 0; max-width: 100%; }
.matrix-filters > * { min-width: 0; max-width: 100%; }
.matrix-filters[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .875rem var(--f-body); padding: .45em .9em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sel { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.sel select { font: inherit; padding: .4em .6em; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); width: auto; min-width: 0; max-width: 100%; }
.matrix-count { margin: 0; font-size: .875rem; color: var(--muted); }

/* Model cards */
.model-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.model-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; }
.model-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.model-card-h { margin: 0 0 10px; font-size: 1.05rem; }
.model-card-h a { color: var(--primary); text-decoration: none; }
.mini-specs { margin: 0 0 14px; display: grid; gap: 6px; }
.mini-specs div { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.mini-specs dt { color: var(--muted); }
.mini-specs dd { margin: 0; text-align: right; font-family: var(--f-mono); }
.model-card .link-arrow { margin-top: auto; }

/* Inquiry card & aside */
.inquiry-card, .points, .contact-card, .spec-request, .aside-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.section-cta .inquiry-card { color: var(--text); }
.section-cta .inquiry-card a { color: var(--secondary); }
.card-h { font-size: 1.05rem; margin: 0 0 12px; }
.points .card-h + ul { margin-bottom: 16px; }
.points ul { margin: 0; padding-left: 1.1em; }
.points li { margin-bottom: 6px; font-size: .925rem; }
.inquiry label { display: block; font-size: .85rem; font-weight: 600; margin: 10px 0 4px; }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; font: inherit; font-size: .95rem; padding: .6em .7em; border: 1px solid #C5CFDA; border-radius: var(--r-btn); background: #fff; color: var(--text); }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 2px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
.inquiry .btn { margin-top: 16px; }
.fallback, .form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.contact-card dl { margin: 0 0 12px; display: grid; gap: 12px; }
.contact-card dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-card dd { margin: 0; font-family: var(--f-mono); }
.contact-lines { list-style: none; padding: 0; }

/* Content blocks */
.prose-block { margin-top: 8px; }
.points-list { padding-left: 1.2em; }
.points-list li { margin-bottom: 6px; }
.faq dt { font-weight: 600; color: var(--primary); margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
.boundary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.boundary > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.boundary ul { margin: 0; padding-left: 1.1em; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.fact-list li { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--r-card) var(--r-card) 0; display: flex; flex-direction: column; gap: 4px; }
.fact-list span { font-size: .9rem; color: var(--muted); }
.trust h2 { margin-top: 0; }
.link-list, .cat-list { columns: 2; padding-left: 1.1em; }
.link-list li, .cat-list li { margin-bottom: 6px; break-inside: avoid; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 1.1rem var(--f-head); display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; font-size: .925rem; }
.step-out { border-left: 1px solid var(--line); padding-left: 16px; }
.alt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.alt-row h2 { margin-top: 0; }
.more { margin-top: 12px; }
.aside-note h3 { margin-top: 0; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.15rem; margin: .2em 0 .5em; }
.post-card h2 a { color: var(--primary); text-decoration: none; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card .link-arrow { margin-top: auto; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--article)) 300px; gap: 56px; justify-content: space-between; padding-top: 16px; padding-bottom: 64px; }
.article h1 { margin-bottom: .4em; }
.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 1em 0 1.4em; font-size: .925rem; border: 1px solid var(--line); }
.prose .table-scroll { margin: 1em 0 1.4em; }
.prose .table-scroll table { margin: 0; border: 0; }
.prose td { font-family: var(--f-body); }
.article-cta { margin-top: 40px; padding: 20px; border-radius: var(--r-card); background: var(--tint); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.article-cta p { margin: 0; font-weight: 600; color: var(--primary); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .9rem; }
.toc li { margin-bottom: 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }

/* Footer */
.site-footer { background: #13263F; color: #CBD5E1; padding: 48px 0 0; font-size: .9rem; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:active { opacity: .7; }
@media (hover: hover) { .site-footer a:hover { color: var(--accent); } }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.foot-h { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.foot-col ul { list-style: none; margin: 0 0 20px; padding: 0; }
.foot-col li { margin-bottom: 6px; }
.foot-models-list { columns: 3; }
.foot-models-list a { font-family: var(--f-mono); font-size: .85rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 16px; padding-bottom: 24px; color: #94A3B8; }
.foot-base p { margin: 0; }

/* Motion (max two effects per page: hero entrance + reveal on scroll) */
/* .reveal-on is added by site.js itself, so content never hides if the script fails to load */
html.js.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js.reveal-on .reveal.is-in { opacity: 1; transform: none; }
html.js .hero-copy { animation: heroIn .7s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.js.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-copy { animation: none; }
  .btn, .cat-card, .chip { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
}
@media (max-width: 900px) {
  .split-2-1, .split-1-1, .hero-grid, .alt-row, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .alt-rev > :first-child { order: 2; }
  .sticky { position: static; }
  .head-cta { justify-content: flex-start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-models { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 40px; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 40px 0; }
  .cat-grid, .model-cards, .post-grid, .boundary, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .spec-band-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step { grid-template-columns: 40px minmax(0, 1fr); }
  .step-out { grid-column: 2; border-left: 0; padding-left: 0; }
  .link-list, .cat-list { columns: 1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-models-list { columns: 2; }
}
