:root {
  color-scheme: light;
  --ink: #1e252b;
  --muted: #4b565e;
  --accent: #aa1724;
  --accent-dark: #85101a;
  --surface: #f5f6f7;
  --line: #dce1e5;
  --white: #fff;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #286eaa; outline-offset: 3px; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: 0; left: 1rem; transform: translateY(-150%); background: var(--white); padding: .75rem; z-index: 20; }
.skip-link:focus { transform: none; }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .7rem; }
.brand { display: inline-flex; }
.brand img { display: block; width: clamp(145px, 20vw, 196px); height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .9rem; }
nav a { display: inline-block; padding-block: .55rem; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--accent); text-decoration: underline; }
section { padding-block: clamp(2.2rem, 5vw, 4.1rem); }
section + section { border-top: 1px solid var(--line); }
section p { max-width: 67ch; }
.hero { background: #f7f8f9; }
.hero-inner { display: grid; gap: clamp(1.4rem, 4vw, 3.25rem); align-items: center; }
.hero-inner.has-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #e6eaed; }
.hero p:not(.tag) { margin: .85rem 0 1.15rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.tag { margin: 0 0 .8rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .075em; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.65rem); letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.028em; }
.hero h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.015em; }
h3 { font-size: 1.19rem; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .66rem 1rem; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--white); text-align: center; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-outline { color: var(--accent); background: var(--white); }
.button-outline:hover { color: var(--accent-dark); background: #fff3f4; }
.phone { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem .65rem; color: var(--accent); font-weight: 750; }
.cards, .gallery, .application-groups { display: grid; gap: 1rem; margin-top: 1.4rem; }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards article, .application-groups > div { padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cards p { margin: 0; color: var(--muted); }
.cards h3 a, .related a { color: var(--accent); font-weight: 700; }
.application-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.application-groups ul { margin-bottom: 0; }
.related { margin: .85rem 0 1.45rem; padding-inline-start: 1.2rem; }
.related li + li { margin-top: .38rem; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); }
.gallery a { display: block; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface); }
.gallery-more { margin-top: 1rem; }
.gallery-more summary { display: list-item; width: fit-content; padding: .58rem .8rem; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-weight: 750; cursor: pointer; }
.buyer-guide, .quote { background: var(--surface); }
.questions details { max-width: 75ch; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.questions summary { cursor: pointer; font-weight: 750; }
.questions details p { margin: .65rem 0 .15rem; }
footer { padding-block: 2rem; background: var(--ink); color: var(--white); }
footer p { margin: .45rem 0; }
.mobile-actions { display: none; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 1120px); }
  .hero-inner.has-photo, .cards, .application-groups { grid-template-columns: minmax(0, 1fr); }
  .bar { gap: .2rem .6rem; }
  nav { column-gap: .75rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-actions { position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .mobile-actions .button { padding-inline: .3rem; font-size: .89rem; }
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
}
.product-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.installation-example figure { max-width: 720px; margin: 1rem 0 0; }
.installation-example img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.installation-example figcaption { margin-top: .6rem; color: var(--muted); }

/* Full-page image viewer */
.image-viewer-open { overflow: hidden; }
main a[data-image-viewer] { display: block; cursor: zoom-in; min-width: 0; }
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: .75rem; border: 0; background: #101417; color: #fff; overflow: auto; }
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .6rem; }
.image-viewer::backdrop { background: #101417; }
.image-viewer-toolbar, .image-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.image-viewer-controls { justify-content: center; }
.image-viewer button { min-height: 44px; min-width: 76px; padding: .45rem .85rem; border: 1px solid #6e777e; border-radius: 6px; background: #262e34; color: #fff; font: inherit; cursor: pointer; }
.image-viewer button:hover { background: #38444d; }
.image-viewer button:focus-visible { outline: 3px solid #8fcaff; outline-offset: 2px; }
.image-viewer figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; margin: 0; text-align: center; }
.image-viewer figure img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-viewer figcaption { padding: .35rem .25rem 0; font-size: .9rem; line-height: 1.35; }

/* Quick access to the product details buyers look for. */
.page-jump { display: block; border-block: 1px solid var(--line); background: var(--white); }
.page-jump .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; padding-block: .3rem; }
.page-jump a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
.page-jump a:last-child { color: var(--accent); }
main h2[id] { scroll-margin-top: 1rem; }

/* Fill photo boxes; the viewer preserves the complete original. */
.hero { background: #fff; }
.hero-inner.has-photo { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.hero-inner.has-photo > a[data-image-viewer] { align-self: center; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; background: #f4f5f6; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery a { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #f4f5f6; }
.gallery img, .product-card img { width: 100%; height: auto; object-fit: cover; object-position: center; }
@media (max-width: 760px) {
  .hero-inner.has-photo { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
}

/* Explicit photo frames prevent intrinsic image dimensions creating blank space. */
.gallery > a[data-image-viewer],
.product-card > a[data-image-viewer],
.hero-inner.has-photo > a[data-image-viewer] {
  position: relative; display: block; width: 100%; height: auto;
  min-height: 0; padding: 0; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: 8px; align-self: start;
}
.product-card > a[data-image-viewer] { aspect-ratio: 16 / 9; margin: 0 0 1rem; }
.hero-inner.has-photo > a[data-image-viewer] { align-self: center; border-radius: 12px; }
.gallery > a[data-image-viewer] > img,
.product-card > a[data-image-viewer] > img,
.hero-inner.has-photo > a[data-image-viewer] > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0;
  aspect-ratio: auto; object-fit: cover; object-position: center;
}
