/* ==========================================================================
   Gas Works — product page template
   One family (Bricolage Grotesque), one accent (flame amber).
   ========================================================================== */

:root {
  --bone: #ECE8E1;
  --paper: #F8F6F2;
  --ink: #1F1D1A;
  --mute: #6B655D;
  --rule: #D5CFC5;
  --amber: #E75130;
  --black: #000;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);

  --t-display: clamp(2.75rem, 7.2vw, 6.25rem);
  --t-h2: clamp(1.75rem, 3.2vw, 2.625rem);
  --t-h3: clamp(1.2rem, 1.6vw, 1.45rem);
  --t-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --t-small: 0.875rem;
  --t-micro: 0.78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* --- Type ---------------------------------------------------------------- */

.display {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-variation-settings: "opsz" 96;
}
.h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; }
.mute { color: var(--mute); }
.small { font-size: var(--t-small); }
.measure { max-width: 62ch; }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: 0 1.4rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: .95rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--black); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #fff; }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { min-height: 2.5rem; padding-inline: 1.1rem; font-size: .875rem; }


/* --- Breadcrumb ---------------------------------------------------------- */

.crumbs { padding-block: .9rem; font-size: var(--t-small); color: var(--mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* --- Hero ---------------------------------------------------------------- */

.hero { position: relative; background: var(--black); color: var(--paper); }
.hero__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}
.hero__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding-bottom: clamp(1.5rem, 4vw, 3.5rem);
}
.hero__title .display { max-width: 12ch; }
.hero__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: var(--t-small); opacity: .9; }
.hero__brand img { height: 1.15rem; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.hero__sub { margin-top: .75rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 300; opacity: .92; }

@media (min-width: 720px) { .hero__media { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .hero__media { aspect-ratio: auto; height: min(78vh, 820px); } }

/* Fact strip: the numbers that matter, as real labelled data */
.facts { background: var(--paper); border-bottom: 1px solid var(--rule); }
.facts__row { display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.fact:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--rule); }
.fact:nth-child(even) { padding-left: 1rem; }
.fact dt { font-size: var(--t-micro); color: var(--mute); margin-bottom: .2rem; }
.fact dd { margin: 0; white-space: nowrap; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.fact dd small { font-size: .8rem; font-weight: 400; color: var(--mute); margin-left: .25rem; }

.facts__cta { display: flex; gap: .6rem; flex-wrap: wrap; padding: 1.1rem 0 1.25rem; }
.facts__cta .btn { flex: 1 1 auto; }

@media (min-width: 720px) {
  .facts__row { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; padding: 1.25rem 1.25rem 1.25rem 0; border-right: 1px solid var(--rule); }
  .fact:nth-child(even) { padding-left: 1.25rem; }
  .fact:nth-child(n+2) { padding-left: 1.25rem; }
  .fact:last-of-type { border-right: 0; }
}
@media (min-width: 1024px) {
  .facts__row { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch; }
  .fact:last-of-type { border-right: 1px solid var(--rule); }
  .facts__cta { padding: 1.1rem 0 1.1rem 1.5rem; align-items: center; flex-wrap: nowrap; }
  .facts__cta .btn { flex: 0 0 auto; }
}

/* --- Intro --------------------------------------------------------------- */

.intro { padding-block: var(--section); }
.intro__grid { display: grid; gap: 2.5rem; }
.intro__copy p + p { margin-top: 1.1rem; }
.glance { border-top: 1px solid var(--ink); }
.glance li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: var(--t-small); }
.glance li::before { content: ""; flex: 0 0 .45rem; height: .45rem; margin-top: .45rem; border-radius: 50%; background: var(--amber); }

@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 7fr 4fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
}

/* --- Fuel bed chooser ---------------------------------------------------- */

.fuelbed { padding-block: 0 var(--section); }
.fuelbed__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.fuelbed__grid { display: grid; gap: 1.5rem; }

.fuelbed__stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0a0a0a;
}
.fuelbed__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.fuelbed__stage img.is-active { opacity: 1; }
.fuelbed__caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1rem 1.25rem;
  color: var(--paper); font-size: var(--t-small);
  background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0));
}

.fuelbed__options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fuelbed__opt {
  display: grid; gap: .6rem; padding: .5rem .5rem .75rem;
  background: transparent; border: 1px solid var(--rule); border-radius: 4px;
  text-align: left; cursor: pointer;
  transition: border-color .15s ease;
}
.fuelbed__opt img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 2px; }
.fuelbed__opt span { font-size: var(--t-small); font-weight: 500; padding-inline: .25rem; }
.fuelbed__opt:hover { border-color: var(--mute); }
.fuelbed__opt[aria-pressed="true"] { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }

.fuelbed__desc { margin-top: 1.25rem; }
.fuelbed__desc p { min-height: 3.2em; }
.fuelbed__note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--mute); }

@media (min-width: 900px) {
  .fuelbed__grid { grid-template-columns: 8fr 4fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
  .fuelbed__stage { aspect-ratio: 16 / 11; }
}

/* --- Features (editorial rows, not cards) -------------------------------- */

.features { background: var(--paper); padding-block: var(--section); border-top: 1px solid var(--rule); }
.features__intro { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.feature { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature__media { overflow: hidden; background: var(--bone); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.feature__media--tall img { aspect-ratio: 4 / 5; }
.feature__copy { align-self: center; }
.feature__copy .h3 { margin-bottom: .75rem; }
.feature__copy p { max-width: 48ch; }
.feature__copy p + p { margin-top: .8rem; }
.feature__points { margin-top: 1.25rem; display: grid; gap: .4rem; font-size: var(--t-small); color: var(--mute); }
.feature__points li { padding-left: 1rem; position: relative; }
.feature__points li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: 1px; background: var(--mute); }

@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(12, 1fr); gap: 0 2rem; }
  .feature__media { grid-column: 1 / 8; }
  .feature__copy { grid-column: 9 / 13; }
  .feature--flip .feature__media { grid-column: 6 / 13; grid-row: 1; }
  .feature--flip .feature__copy { grid-column: 1 / 5; grid-row: 1; }
  .feature--narrow .feature__media { grid-column: 2 / 6; }
  .feature--narrow .feature__copy { grid-column: 7 / 12; }
}

/* --- Specifications (the black steel block) ------------------------------ */

.specs { background: var(--black); color: var(--paper); padding-block: var(--section); }
.specs__grid { display: grid; gap: 3rem; }
.specs .h2 { margin-bottom: .5rem; }
.specs__intro { color: rgba(255,255,255,.65); max-width: 40ch; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: var(--t-small); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.spec-table th { font-weight: 400; color: rgba(255,255,255,.62); width: 46%; padding-right: 1rem; }
.spec-table td { font-weight: 500; }
.spec-table tbody tr:first-child th, .spec-table tbody tr:first-child td { border-top: 1px solid rgba(255,255,255,.4); }
.spec-table .yes { color: var(--amber); }
.stars { display: inline-flex; gap: .15rem; margin-left: .5rem; vertical-align: -2px; }
.stars svg { width: 12px; height: 12px; fill: var(--amber); }
.stars svg.half { fill: url(#half); }

.dims { display: grid; gap: 1.5rem; }
.dims__drawing { width: 100%; height: auto; }
.dims__drawing text { font-family: var(--font); font-size: 13px; fill: rgba(255,255,255,.75); }
.dims__drawing .line { stroke: rgba(255,255,255,.35); stroke-width: 1; fill: none; }
.dims__drawing .body { stroke: rgba(255,255,255,.85); stroke-width: 1.5; fill: none; }
.dims__drawing .glass { stroke: rgba(255,255,255,.5); stroke-width: 1; fill: rgba(255,255,255,.04); }
.dims__drawing .flue { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.5); stroke-width: 1; }
.dims__drawing .label { fill: rgba(255,255,255,.45); font-size: 12px; }
.dims__note { font-size: var(--t-small); color: rgba(255,255,255,.62); max-width: 44ch; }

.downloads { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.4); }
.downloads li { border-bottom: 1px solid rgba(255,255,255,.16); }
.downloads a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; text-decoration: none; font-size: var(--t-small);
}
.downloads a:hover span:first-child { text-decoration: underline; }
.downloads a small { color: rgba(255,255,255,.55); white-space: nowrap; }

@media (min-width: 900px) {
  .specs__grid { grid-template-columns: 6fr 5fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
}

/* --- Process (a real sequence, so numbered) ------------------------------ */

.process { padding-block: var(--section); }
.process__head { max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 4rem); }
.process__head p { margin-top: 1rem; }
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.step { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.step::before { content: counter(step); grid-row: 1 / span 2; font-size: 1.5rem; font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--mute); }
.step .h3, .step p { grid-column: 2; }
.step .h3 { margin-bottom: .4rem; }
.step p { font-size: var(--t-small); color: var(--mute); max-width: 36ch; }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 3rem; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
  .step { grid-template-columns: 1fr; gap: 0; padding: 1.75rem 0 2rem; }
  .step::before { grid-row: auto; margin-bottom: 1.25rem; }
  .step .h3, .step p { grid-column: 1; }
  .step .h3 { min-height: 2.6em; }
}

/* --- Showrooms ----------------------------------------------------------- */

.showrooms { background: var(--paper); border-top: 1px solid var(--rule); padding-block: var(--section); }
.showrooms__grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.showroom { display: grid; gap: 1.25rem; }
.showroom__media { aspect-ratio: 16 / 9; background: var(--bone); overflow: hidden; }
.showroom__media img { width: 100%; height: 100%; object-fit: cover; }
.showroom__body { display: grid; gap: .5rem; }
.showroom__status { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-small); color: var(--mute); }
.showroom__status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); }
.showroom address { font-style: normal; font-size: var(--t-small); line-height: 1.5; }
.showroom__hours { font-size: var(--t-small); color: var(--mute); }
.showroom__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

@media (min-width: 720px) { .showrooms__grid { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); } }

/* --- Enquiry ------------------------------------------------------------- */

.enquiry { padding-block: var(--section); border-top: 1px solid var(--rule); }
.enquiry__grid { display: grid; gap: 2.5rem; }
.enquiry__copy p { margin-top: 1rem; max-width: 40ch; }
.enquiry__copy .contact-lines { margin-top: 2rem; display: grid; gap: .75rem; font-size: var(--t-small); }
.enquiry__copy .contact-lines a { font-weight: 500; text-decoration: none; }
.enquiry__copy .contact-lines a:hover { text-decoration: underline; }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--t-small); color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .65rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: transparent; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__foot small { color: var(--mute); }

@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .enquiry__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; } }

/* --- Related ------------------------------------------------------------- */

.related { background: var(--paper); border-top: 1px solid var(--rule); padding-block: var(--section); }
.related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.related__grid { display: grid; gap: 2rem; }
.product { text-decoration: none; display: grid; gap: .9rem; }
.product__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product__media img { transform: scale(1.03); }
.product__body { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: baseline; }
.product__name { font-weight: 500; letter-spacing: -0.01em; }
.product__meta { grid-column: 1; font-size: var(--t-small); color: var(--mute); }
.product__price { grid-column: 2; grid-row: 1 / 3; font-size: var(--t-small); white-space: nowrap; }
.product:hover .product__name { text-decoration: underline; }

@media (min-width: 720px) { .related__grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .product__media img, .fuelbed__stage img, .btn { transition: none; } }

/* --- Footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: 3.5rem 2.5rem; font-size: var(--t-small); }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer img { height: 2.25rem; width: auto; opacity: .85; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-weight: 500; font-size: 1rem; margin-bottom: .75rem; }
.site-footer li { padding: .2rem 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer__legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.5); font-size: var(--t-micro); display: flex; flex-wrap: wrap; gap: .5rem 2rem; }

@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }

/* --- Mobile action bar --------------------------------------------------- */

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(248,246,242,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
}
body { padding-bottom: 4.5rem; }
@media (min-width: 1024px) { .actionbar { display: none; } body { padding-bottom: 0; } }
