/* Vials Plus, site styles. Hand written, no framework, no build step.
   Colours come from the logo (blue #0260c2, green #138235) and the real product colours. */

@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #10243a;
  --ink-2: #44586d;
  --blue: #0260c2;
  --blue-d: #014a96;
  --green: #138235;
  --green-d: #0e6a2a;
  --green-t: #e6f4ea;
  --tint: #eef4fa;
  --tint-2: #dfeaf5;
  --line: #d3e0ec;
  --white: #fff;
  --r-l: 24px;
  --r-m: 12px;
  --r-s: 8px;
  --wrap: 1180px;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.58 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); font-weight: 720; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: var(--r-m); font: 650 1rem var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-d); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 28px; height: 79px; } /* + 1px border = 80px, the subnav sticks at 80px */
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"] { color: var(--blue); }
.head-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.head-phone { color: var(--ink); font-weight: 650; text-decoration: none; white-space: nowrap; }
.head-phone:hover { color: var(--blue); }
.quote-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; white-space: nowrap; background: var(--green); color: #fff; border: 0; border-radius: var(--r-m); font: 650 1rem var(--body); cursor: pointer; }
.quote-toggle:hover { background: var(--green-d); }
.quote-toggle .count { min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center; background: #fff; color: var(--green-d); border-radius: 12px; font-size: .88rem; font-variant-numeric: tabular-nums; }

/* hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1.04fr .96fr; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 36px; margin: 38px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: .88rem; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font: 650 1.08rem var(--head); }
.trio { background: var(--tint); border-radius: var(--r-l); padding: 34px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; align-items: end; }
.trio figure { margin: 0; text-align: center; min-width: 0; }
/* position, not transform: a transform would stop the multiply blend from dropping the photo's white */
.trio figure:nth-child(2) { position: relative; top: -22px; }
.trio img { mix-blend-mode: multiply; width: 100%; height: auto; aspect-ratio: 535 / 700; object-fit: cover; }
.trio figcaption { margin-top: 6px; font-weight: 600; font-size: .95rem; }

/* sections */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--ink-2); }

/* supply tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; grid-column: span 2; border: 1.5px solid var(--line); border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; }
.tile:hover { border-color: var(--blue); color: var(--ink); }
.tile.big { grid-column: span 3; }
.tile-img { position: relative; background: var(--tint); }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; object-fit: cover; }
.tile.big .tile-img { aspect-ratio: 4 / 3; }
.tile.big .tile-img img { object-position: 50% 72%; }
.tile:not(.big) .tile-img { aspect-ratio: 4 / 3; }
.tile:not(.big) .tile-img img { object-position: 50% 60%; }
/* the product photos have an off-white background: lift it to white so multiply leaves no box edges */
.trio img, .tile-img img, .viewer-img img { filter: brightness(1.035) contrast(1.02); }
.tile-body { padding: 18px 22px 22px; display: grid; gap: 6px; }
.tile-body p { color: var(--ink-2); }
.tile-body .from { margin-top: 6px; font: 650 1.05rem var(--head); color: var(--blue-d); }
.tile-body .range { font-size: .9rem; color: var(--ink-2); }

/* steps: this really is a sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 3px solid var(--blue); }
.steps li::before { content: counter(s); display: block; font: 740 2.2rem/1 var(--head); color: var(--blue); margin-bottom: 10px; }
.steps p { margin-top: 6px; color: var(--ink-2); }

/* about + contact */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about .prose { display: grid; gap: 16px; margin-top: 18px; max-width: 60ch; }
.contact-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 28px; display: grid; gap: 6px; }
.contact-card dt { font-size: .9rem; color: var(--ink-2); margin-top: 14px; }
.contact-card dd { margin: 0; font: 650 1.25rem var(--head); }
.contact-card dd a { color: var(--ink); text-decoration-color: var(--line); }
.contact-card .btn { margin-top: 22px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.foot-in img { height: 44px; width: auto; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--blue); }
.foot-links span { color: var(--ink); font-weight: 600; }
.legal { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-2); max-width: 90ch; display: grid; gap: 8px; }

/* products page */
.page-head { padding: 44px 0 26px; }
.page-head p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
.subnav { position: sticky; top: 80px; z-index: 15; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.subnav a:hover { border-color: var(--blue); }
.subnav a.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.family { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.family:last-of-type { border-bottom: 0; }
.fam-head { max-width: 66ch; }
.fam-head p { margin-top: 12px; color: var(--ink-2); }
.features { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; font-size: .98rem; }
.features li { padding-left: 14px; border-left: 3px solid var(--green); }
.fam-body { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 40px; margin-top: 30px; align-items: start; }
.viewer { position: sticky; top: 150px; }
.viewer-img { position: relative; background: var(--tint); border-radius: var(--r-l); aspect-ratio: 1 / 1.08; overflow: hidden; }
.viewer-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); mix-blend-mode: multiply; object-fit: contain; }
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 600 .95rem var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); }

.sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; margin-right: 8px; vertical-align: -3px; }
.sw-amber { background: radial-gradient(circle at 35% 30%, #f4b863, #cf7a0e 72%); }
.sw-blue { background: radial-gradient(circle at 35% 30%, #5eaaf0, #0b63c4 72%); }
.sw-clear { background: radial-gradient(circle at 35% 30%, #fff, #d4e3f0 72%); box-shadow: inset 0 0 0 1.5px #9db6cc; }

.matrix { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.matrix thead th { text-align: left; font-weight: 650; padding: 4px 4px 8px; font-size: .98rem; white-space: nowrap; }
.matrix tbody th { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; width: 25%; }
.matrix td { padding: 0 3px; }
.matrix.single td { width: 240px; max-width: 240px; }
.matrix.single thead th:last-child, .matrix.single tbody td { padding-left: 3px; }
.size { display: block; font: 700 1.12rem var(--head); }
.per { display: block; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.add-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-m); font: 650 1.02rem var(--body); font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.add-btn:hover { border-color: var(--blue); background: var(--tint); }
.add-btn .plus { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.1rem; line-height: 1; }
.stepper { min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; border: 1.5px solid var(--green); background: var(--green-t); border-radius: var(--r-m); }
.stepper output { font: 700 1.05rem var(--body); font-variant-numeric: tabular-nums; color: var(--green-d); min-width: 1.4em; text-align: center; }
.step-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--green-d); font: 700 1.2rem/1 var(--body); cursor: pointer; }
.step-btn:hover { background: var(--green); color: #fff; }

.box-details { margin-top: 18px; border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 0 16px; }
.box-details summary { cursor: pointer; padding: 14px 0; font-weight: 650; }
.box-details table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .94rem; font-variant-numeric: tabular-nums; }
.box-details th, .box-details td { text-align: left; padding: 7px 8px 7px 0; border-top: 1px solid var(--line); }
.note { margin-top: 12px; font-size: .9rem; color: var(--ink-2); max-width: 70ch; }

/* quote drawer (native dialog) */
.quote { border: 0; padding: 0; margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: none; background: #fff; color: var(--ink); box-shadow: -12px 0 40px rgba(16,36,58,.18); }
.quote::backdrop { background: rgba(16,36,58,.45); }
.quote[open] { display: flex; flex-direction: column; animation: slide-in .22s ease-out; }
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.q-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.q-close { width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.q-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.q-empty { color: var(--ink-2); }
.q-lines { list-style: none; margin: 0; padding: 0; }
.q-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-line strong { font-weight: 650; }
.q-line small { display: block; color: var(--ink-2); font-size: .86rem; font-variant-numeric: tabular-nums; }
.q-line .stepper { grid-column: 1; width: 128px; min-height: 42px; }
.q-line .line-total { grid-column: 2; align-self: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.q-total { display: flex; justify-content: space-between; padding: 16px 0 4px; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.q-fine { font-size: .86rem; color: var(--ink-2); }
.q-form { display: grid; gap: 12px; margin-top: 18px; }
.q-form label { display: grid; gap: 5px; font-weight: 600; font-size: .94rem; }
.q-form input { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); font: 400 1rem var(--body); color: var(--ink); }
.q-form input:focus-visible { border-color: var(--blue); }
.q-foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.q-foot .btn { width: 100%; }
.q-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-msg { min-height: 1.3em; font-size: .9rem; color: var(--green-d); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* 404 */
.lost { padding: 96px 0; }
.lost p { margin: 14px 0 26px; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 980px) {
  .hero-grid, .about { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; }
  .fam-body { grid-template-columns: 1fr; gap: 22px; }
  .viewer { position: static; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
  .viewer-img { aspect-ratio: 1 / 1; border-radius: 16px; }
  .chips { margin: 0; flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.big { grid-column: span 1; }
  .tile.big { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .nav { margin-left: 0; }
  .nav a[href="/#about"], .nav a[href="/#contact"] { display: none; } /* still in the footer */
}
@media (max-width: 640px) {
  .head-in { gap: 12px; height: 65px; }
  .logo img { height: 42px; }
  .head-phone { display: none; }
  .subnav { top: 66px; }
  html { scroll-padding-top: 120px; }
  .hero { padding: 32px 0 44px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .section { padding: 52px 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile.big, .tile { grid-column: 1; }
  .tile:not(.big) .tile-img { aspect-ratio: 16 / 10; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .add-btn .plus { display: none; }
  .add-btn { justify-content: center; padding: 0 4px; font-size: .98rem; }
  .matrix thead th { font-size: .88rem; padding-inline: 2px; }
  .matrix thead .sw { display: none; }
  .matrix tbody th { width: 27%; padding-right: 6px; }
  .size { font-size: 1rem; }
  .step-btn { width: 28px; height: 28px; }
  .viewer { grid-template-columns: 150px 1fr; }
  .quote-toggle { padding: 0 12px; gap: 8px; }
  .nav a { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quote[open] { animation: none; }
}
