/* ==========================================================================
   Gas Works — fireplace product page, variant C "After dark"
   Charcoal ground, full-height hero, ember accent. Manrope throughout.
   ========================================================================== */

:root {
  --char: #161513;
  --soot: #211F1C;
  --smoke: #2C2926;
  --ash: #EDE8E0;
  --mute: #9C958B;
  --rule: rgba(255,255,255,.14);
  --ember: #E75130;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --container: 1320px;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);

  --t-display: clamp(2.8rem, 8vw, 7rem);
  --t-h2: clamp(1.8rem, 3.4vw, 2.8rem);
  --t-h3: clamp(1.15rem, 1.5vw, 1.4rem);
  --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(--char); color: var(--ash); font-family: var(--font); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: 4.5rem; }
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(--ember); outline-offset: 3px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-size: var(--t-display); font-weight: 300; line-height: .96; letter-spacing: -0.035em; }
.h2 { font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 300; line-height: 1.4; max-width: 36ch; }
.mute { color: var(--mute); }
.small { font-size: var(--t-small); }
.measure { max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.5rem; border: 1px solid var(--ash); border-radius: 999px; background: var(--ash); color: var(--char); font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--ember); border-color: var(--ember); color: var(--char); }
.btn--ghost { background: transparent; color: var(--ash); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--ash); color: var(--ash); }
.btn--sm { min-height: 2.5rem; padding-inline: 1.1rem; font-size: .875rem; }


/* --- Hero: full height --------------------------------------------------- */
.hero { position: relative; min-height: calc(100svh - 4.25rem); display: grid; align-items: end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.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(22,21,19,.25) 0%, rgba(22,21,19,0) 30%, rgba(22,21,19,.85) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.5rem; }
.hero__crumbs { font-size: var(--t-small); color: rgba(255,255,255,.7); }
.hero__crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.hero__crumbs li + li::before { content: "/"; margin-right: .6rem; color: rgba(255,255,255,.35); }
.hero__crumbs a { text-decoration: none; }
.hero__brand { display: flex; align-items: center; gap: .75rem; font-size: var(--t-small); color: rgba(255,255,255,.8); }
.hero__brand img { height: 1.1rem; width: auto; filter: brightness(0) invert(1); }
.hero__title .display { max-width: 12ch; }
.hero__sub { margin-top: .75rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 300; color: rgba(255,255,255,.85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr auto; align-items: end; }
  .hero__crumbs { grid-column: 1 / -1; }
  .hero__cta { justify-content: flex-end; padding-bottom: .5rem; }
}

/* Numbers band: this product is bought on its figures */
.numbers { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--soot); }
.numbers__row { display: grid; grid-template-columns: 1fr 1fr; }
.number { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
.number:nth-child(odd) { border-right: 1px solid var(--rule); }
.number:nth-child(even) { padding-left: 1.25rem; }
.number dd { margin: 0; font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1; }
.number dd small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: .3rem; }
.number dt { font-size: var(--t-small); color: var(--mute); margin-top: .5rem; }
@media (min-width: 900px) {
  .numbers__row { grid-template-columns: repeat(4, 1fr); }
  .number { border-bottom: 0; border-right: 1px solid var(--rule); padding: 2rem 1.5rem 2rem 0; }
  .number:nth-child(n+2) { padding-left: 1.5rem; }
  .number:last-child { border-right: 0; }
}

/* --- Intro --------------------------------------------------------------- */
.intro { padding-block: var(--section); }
.intro__grid { display: grid; gap: 2.5rem; }
.intro__copy p + p { margin-top: 1.1rem; }
.intro__copy .lead { margin-bottom: 1.5rem; }
.glance { border-top: 1px solid rgba(255,255,255,.5); }
.glance li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: var(--t-small); color: var(--mute); }
.glance li::before { content: ""; flex: 0 0 .45rem; height: .45rem; margin-top: .5rem; border-radius: 50%; background: var(--ember); }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 7fr 4fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; } }

/* --- Fuel bed: full-bleed stage with option pills ----------------------- */
.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.5rem; }
.fuelbed__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.fuelbed__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.fuelbed__stage img.is-active { opacity: 1; }
.fuelbed__caption { position: absolute; left: 0; top: 0; padding: 1rem var(--gutter); font-size: var(--t-small); color: rgba(255,255,255,.85); }
.fuelbed__options { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .75rem; }
.fuelbed__opt { display: flex; align-items: center; gap: .75rem; padding: .5rem .9rem .5rem .5rem; background: var(--soot); border: 1px solid var(--rule); border-radius: 999px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.fuelbed__opt img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fuelbed__opt span { font-size: var(--t-small); font-weight: 600; line-height: 1.2; }
.fuelbed__opt:hover { border-color: rgba(255,255,255,.5); }
.fuelbed__opt[aria-pressed="true"] { border-color: var(--ember); background: rgba(231,81,48,.14); }
.fuelbed__desc { margin-top: 1.25rem; max-width: 60ch; display: grid; gap: .3rem; }
.fuelbed__desc p { color: var(--mute); font-size: var(--t-small); }
.fuelbed__note { margin-top: 1rem; font-size: var(--t-small); color: var(--mute); max-width: 60ch; }
@media (min-width: 900px) {
  .fuelbed__stage { aspect-ratio: 21 / 9; }
  .fuelbed__options { position: absolute; left: var(--gutter); bottom: 1.5rem; z-index: 2; grid-template-columns: repeat(4, auto); margin: 0; }
  .fuelbed__opt { background: rgba(22,21,19,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .fuelbed__lower { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

/* --- Features: edge-bleeding media --------------------------------------- */
.features { padding-block: 0 var(--section); }
.feature { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.feature__media { overflow: hidden; background: var(--soot); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.feature__copy { align-self: center; }
.feature__copy .h3 { margin-bottom: .75rem; }
.feature__copy p { max-width: 46ch; color: rgba(237,232,224,.85); }
.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(--ember); }
@media (min-width: 900px) {
  .feature { grid-template-columns: repeat(12, 1fr); gap: 0 2rem; }
  .feature__media { grid-column: 1 / 8; margin-left: calc(-1 * var(--gutter)); }
  .feature__copy { grid-column: 9 / 13; }
  .feature--flip .feature__media { grid-column: 6 / 13; grid-row: 1; margin-left: 0; margin-right: calc(-1 * var(--gutter)); }
  .feature--flip .feature__copy { grid-column: 1 / 5; grid-row: 1; }
}
@media (min-width: 1400px) { .feature__media, .feature--flip .feature__media { margin-left: 0; margin-right: 0; } }

/* --- Specs --------------------------------------------------------------- */
.specs { background: var(--soot); border-top: 1px solid var(--rule); padding-block: var(--section); }
.specs__grid { display: grid; gap: 3rem; }
.specs .h2 { margin-bottom: .5rem; }
.specs__intro { color: var(--mute); 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 var(--rule); }
.spec-table th { font-weight: 400; color: var(--mute); width: 46%; padding-right: 1rem; }
.spec-table td { font-weight: 600; }
.spec-table tbody tr:first-child th, .spec-table tbody tr:first-child td { border-top: 1px solid rgba(255,255,255,.5); }
.spec-table .yes { color: var(--ember); }
.stars { display: inline-flex; gap: .15rem; margin-left: .5rem; vertical-align: -2px; }
.stars svg { width: 12px; height: 12px; fill: var(--ember); }
.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: var(--mute); max-width: 44ch; }
.downloads { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.5); }
.downloads li { border-bottom: 1px solid var(--rule); }
.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: var(--mute); white-space: nowrap; }
@media (min-width: 900px) { .specs__grid { grid-template-columns: 6fr 5fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; } }

/* --- Process ------------------------------------------------------------- */
.process { padding-block: var(--section); }
.process__head { max-width: 52ch; margin-bottom: clamp(2rem, 5vw, 4rem); }
.process__head p { margin-top: 1rem; color: var(--mute); }
.steps { counter-reset: step; display: grid; border-top: 1px solid rgba(255,255,255,.5); }
.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: 200; line-height: 1; color: var(--ember); }
.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; 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(--soot); border-top: 1px solid var(--rule); padding-block: var(--section); }
.showrooms__grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.showroom { display: grid; gap: 1.25rem; }
.showroom__media { aspect-ratio: 16 / 9; background: var(--smoke); 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(--ember); }
.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; color: var(--mute); }
.contact-lines { margin-top: 2rem; display: grid; gap: .75rem; font-size: var(--t-small); color: var(--mute); }
.contact-lines a { font-weight: 600; color: var(--ash); text-decoration: none; }
.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(--ash); background: var(--soot); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color-scheme: dark; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ember); 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(--soot); 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(--smoke); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product__media img { transform: scale(1.03); }
.product__name { font-weight: 600; letter-spacing: -0.01em; }
.product__meta { display: block; font-size: var(--t-small); color: var(--mute); }
.product:hover .product__name { color: var(--ember); }
@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: #0E0D0C; color: rgba(255,255,255,.75); 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: 600; 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; } }

.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(22,21,19,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
@media (min-width: 1024px) { .actionbar { display: none; } body { padding-bottom: 0; } }
