/* ==========================================================================
   Precision Labware — Laboratory Glassware & Diagnostic Supplies
   Shared stylesheet.
   Palette: Teal accent #0F766E / cool Off-white #F4F6F5 / near-black #14201E
   Type: serif display (system) for headings + wordmark, system sans for body
   NOTE: the CSS variable names below are kept stable (e.g. --orange, --cream)
   so inline style="" references in the HTML keep resolving; only the *values*
   were changed for the current brand. --orange = accent, --cream = background.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --orange:    #0F766E;   /* accent — deep teal */
  --cream:     #F4F6F5;   /* background — cool off-white */
  --cream-20:  #E9EDEB;   /* background, one shade darker */
  --white:     #FFFFFF;
  --ink:       #14201E;   /* near-black body text / dark surfaces */
  --grey-60:   #51605D;   /* secondary text */
  --grey-40:   #97A3A0;
  --line:      #DCE3E1;   /* divider (cool grey) */
  --max:       1180px;
  --gap:       clamp(1.5rem, 4vw, 4rem);
  --radius:    14px;
  --shadow:    0 1px 2px rgba(8,20,18,.04), 0 12px 32px rgba(8,20,18,.07);
  /* Body: system sans-serif */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  /* Display / wordmark: system serif */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.14; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { color: #26302e; }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.muted { color: var(--grey-60); }

/* ---- Containers / sections ---- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 56ch; margin-bottom: 2.5rem; }
.section-head p { margin-top: .9rem; color: var(--grey-60); font-size: 1.05rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,246,245,.82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: baseline; gap: .55rem; }
.brand .mark {
  font-family: var(--serif);
  font-size: 1.4rem; letter-spacing: .01em; font-weight: 700;
}
.brand .sub {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--grey-60);
}
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-size: .92rem; color: var(--ink); position: relative; padding-block: .3rem;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--orange);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: .95rem 1.5rem; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(4rem, 10vw, 8rem); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap); align-items: center; }
.hero h1 { margin: 1rem 0 1.3rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p.lead { font-size: 1.18rem; color: #333; max-width: 46ch; }
.hero-figure {
  aspect-ratio: 4/5; border-radius: var(--radius); position: relative;
  background: var(--cream-20);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; margin: 0;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 16/10; order: -1; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 500; padding: .85rem 1.5rem;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--orange); border-color: var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---- Stats bar ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.stat .n { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; }
.stat .n span { color: var(--orange); }
.stat .l { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-60); margin-top: .3rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ---- Card grid ---- */
.grid { display: grid; gap: 1.4rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(8,8,10,.05), 0 22px 48px rgba(8,8,10,.10); }
.card .ix { font-family: var(--mono); font-size: .72rem; color: var(--orange); letter-spacing: .1em; }
.card h3 { margin: .7rem 0 .5rem; }
.card p { color: var(--grey-60); font-size: .98rem; }

/* ---- Spec table ---- */
.spec { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec th { background: var(--cream-20); font-weight: 600; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-60); }
.spec tr:last-child td { border-bottom: 0; }
.spec td:first-child { font-weight: 500; }

/* ---- Callout ---- */
.callout {
  border-left: 3px solid var(--orange); background: var(--cream-20);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0;
}
.callout p { color: var(--ink); }

/* ==========================================================================
   Blog
   ========================================================================== */
.post-list { display: grid; gap: 1.2rem; }
.post-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; transition: transform .15s ease, box-shadow .15s ease;
}
.post-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-item .meta { font-family: var(--mono); font-size: .72rem; color: var(--grey-60); letter-spacing: .08em; }
.post-item h3 { margin-bottom: .4rem; }
.post-item p { color: var(--grey-60); font-size: .96rem; }
.post-item .more { color: var(--orange); font-size: .9rem; font-weight: 500; margin-top: .6rem; display: inline-block; }
@media (max-width: 620px) { .post-item { grid-template-columns: 1fr; gap: .5rem; } }

/* ---- Article body ---- */
.article { max-width: 720px; margin-inline: auto; }
.article .meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-60); }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin: .8rem 0 1.4rem; }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.6rem 0 1rem; }
.article h3 { margin: 1.8rem 0 .6rem; }
.article p { margin-bottom: 1.2rem; line-height: 1.75; }
.article ul, .article ol { margin: 0 0 1.4rem 1.3rem; }
.article li { margin-bottom: .5rem; }
.article .lead { font-size: 1.2rem; color: #333; }
.back { font-family: var(--mono); font-size: .8rem; color: var(--orange); display: inline-block; margin-bottom: 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: #c3cdca; padding-block: 3.5rem 2.5rem; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer .mark { font-family: var(--serif); color: #fff; font-size: 1.35rem; font-weight: 700; }
.footer p { color: #8b9895; font-size: .92rem; margin-top: .8rem; max-width: 42ch; }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .6rem; }
.footer a { color: #b7c2bf; font-size: .92rem; transition: color .15s; }
.footer a:hover { color: #4FD1C5; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid #2a3a37; margin-top: 1.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: #74827f; }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .brand-col { grid-column: 1 / -1; } }
