/* ==========================================================================
   Gas Works — fireplace product page, variant B "Gallery"
   White retail ground, image gallery with a sticky summary panel.
   Instrument Serif for the product name, Instrument Sans for everything else.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --linen: #F4F2ED;
  --ink: #1C1A18;
  --mute: #716B63;
  --rule: #E2DED6;
  --brass: #E75130;

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1360px;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --section: clamp(4rem, 8vw, 7rem);

  --t-display: clamp(2.6rem, 5.5vw, 4.5rem);
  --t-h2: clamp(1.9rem, 3.4vw, 2.9rem);
  --t-h3: clamp(1.15rem, 1.5vw, 1.35rem);
  --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(--white); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.55; -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(--brass); outline-offset: 3px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--serif); font-size: var(--t-display); font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.h2 { font-family: var(--serif); font-size: var(--t-h2); font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.3; max-width: 36ch; }
.mute { color: var(--mute); }
.small { font-size: var(--t-small); }
.measure { max-width: 62ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.5rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--white); font-size: .95rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--sm { min-height: 2.5rem; padding-inline: 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }


.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); }

/* --- PDP: gallery + sticky panel ----------------------------------------- */
.pdp { padding-block: 1rem var(--section); }
.pdp__grid { display: grid; gap: 2rem; }
.gallery { display: grid; gap: .75rem; }
.fuelbed__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen); }
.fuelbed__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.fuelbed__stage img.is-active { opacity: 1; }
.fuelbed__caption { position: absolute; left: 0; bottom: 0; padding: .6rem .9rem; font-size: var(--t-micro); color: var(--white); background: rgba(0,0,0,.45); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.gallery__thumbs .fuelbed__opt { padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer; overflow: hidden; }
.gallery__thumbs .fuelbed__opt img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.gallery__thumbs .fuelbed__opt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gallery__thumbs .fuelbed__opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.panel { display: grid; gap: 1.5rem; align-content: start; }
.panel__brand { display: flex; align-items: center; gap: .75rem; font-size: var(--t-small); color: var(--mute); }
.panel__brand img { height: .85rem; width: auto; }
.panel__sub { margin-top: .5rem; font-size: 1.05rem; color: var(--mute); }
.panel__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.panel__facts div { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.panel__facts div:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--rule); }
.panel__facts div:nth-child(even) { padding-left: 1rem; }
.panel__facts dt { font-size: var(--t-micro); color: var(--mute); }
.panel__facts dd { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.panel__facts dd small { font-weight: 400; color: var(--mute); font-size: .8rem; }

.swatches__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; font-size: var(--t-small); }
.swatches__head strong { font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.swatches .fuelbed__opt { padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer; text-align: left; display: grid; gap: .35rem; }
.swatches .fuelbed__opt img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.swatches .fuelbed__opt span { font-size: var(--t-micro); padding: 0 .4rem .4rem; line-height: 1.2; }
.swatches .fuelbed__opt[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.swatches__desc { margin-top: .6rem; font-size: var(--t-small); color: var(--mute); min-height: 2.6em; }

.panel__cta { display: grid; gap: .6rem; }
.assure { display: grid; gap: .5rem; font-size: var(--t-small); color: var(--mute); border-top: 1px solid var(--rule); padding-top: 1rem; }
.assure li { display: flex; gap: .6rem; }
.assure li::before { content: ""; flex: 0 0 .4rem; height: .4rem; border-radius: 50%; background: var(--brass); margin-top: .5rem; }
.jump { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--t-small); }
.jump a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .1rem; }
.jump a:hover { border-color: var(--ink); }

@media (min-width: 960px) {
  .pdp__grid { grid-template-columns: 7fr 5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .panel { position: sticky; top: 4.75rem; }
  .fuelbed__stage { aspect-ratio: 4 / 3; }
}

/* --- Details ------------------------------------------------------------- */
.details { padding-block: var(--section); background: var(--linen); }
.details__grid { display: grid; gap: 2.5rem; }
.details__copy p + p { margin-top: 1.1rem; }
.details__copy .lead { margin-bottom: 1.5rem; }
.glance { border-top: 1px solid var(--ink); }
.glance li { padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: var(--t-small); }
@media (min-width: 900px) { .details__grid { grid-template-columns: 7fr 4fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; } }

/* --- Features: 2x2 gallery, captions below ------------------------------- */
.features { padding-block: var(--section); }
.features .h2 { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.features__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem) 2.5rem; }
.feature__media { background: var(--linen); overflow: hidden; margin-bottom: 1rem; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature .h3 { margin-bottom: .4rem; }
.feature p { font-size: var(--t-small); color: var(--mute); max-width: 44ch; }
@media (min-width: 720px) { .features__grid { grid-template-columns: 1fr 1fr; } }

/* --- Specs --------------------------------------------------------------- */
.specs { padding-block: var(--section); background: var(--linen); }
.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: .7rem 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 var(--ink); }
.spec-table .yes { color: var(--brass); }
.stars { display: inline-flex; gap: .15rem; margin-left: .5rem; vertical-align: -2px; }
.stars svg { width: 12px; height: 12px; fill: var(--brass); }
.stars svg.half { fill: url(#half); }
.dims { display: grid; gap: 1.5rem; }
.dims__drawing { width: 100%; height: auto; }
.dims__drawing text { font-family: var(--sans); font-size: 13px; fill: var(--mute); }
.dims__drawing .line { stroke: #B9B2A6; stroke-width: 1; fill: none; }
.dims__drawing .body { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.dims__drawing .glass { stroke: #B9B2A6; stroke-width: 1; fill: rgba(0,0,0,.03); }
.dims__drawing .flue { fill: rgba(0,0,0,.08); stroke: #B9B2A6; stroke-width: 1; }
.dims__drawing .label { fill: #A39B90; 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 var(--ink); }
.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 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-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--brass); }
.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 { padding-block: var(--section); background: var(--linen); }
.showrooms__grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
.showroom { display: grid; gap: 1.25rem; }
.showroom__media { aspect-ratio: 16 / 9; background: var(--white); 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(--brass); }
.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); }
.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); }
.contact-lines a { font-weight: 600; 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(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 2px; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); 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 { padding-block: var(--section); border-top: 1px solid var(--rule); }
.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(--linen); }
.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-family: var(--serif); font-size: 1.35rem; }
.product__meta { display: block; font-size: var(--t-small); color: var(--mute); }
.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: 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(255,255,255,.94); 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; } }
