/* =========================================================
   Plastic Injection Moulders UK — core stylesheet
   Modern, minimal. Two-blue palette, rounded buttons,
   white buttons on blue. System fonts for fast LCP.
   ========================================================= */

:root {
  /* Two blues + tints */
  --navy: #0b2545;          /* deep blue (primary dark) */
  --navy-700: #102f56;
  --navy-600: #16395f;
  --blue: #2563eb;          /* bright accent blue */
  --blue-600: #1d4ed8;
  --blue-300: #6ea2ff;
  --blue-50: #eef4ff;       /* light blue surface */
  --blue-100: #dde9ff;

  --ink: #0d1b2a;
  --body: #44505f;
  --muted: #74808f;
  --line: #e9edf3;
  --line-2: #f1f4f8;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --ok: #2563eb;            /* ticks now blue, on-brand */
  --teal: #16b6c9;          /* hero hover accent (teal blue) */

  --radius: 18px;
  --radius-sm: 12px;
  --btn-radius: 999px;      /* pill buttons */
  --shadow: 0 1px 2px rgba(11,37,69,.04), 0 4px 16px rgba(11,37,69,.05);
  --shadow-lg: 0 16px 48px rgba(11,37,69,.12);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 750; }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.15rem); margin: 0 0 .5em; letter-spacing: -1px; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 1.8em 0 .55em; letter-spacing: -.6px; }
h3 { font-size: 1.22rem; margin: 1.4em 0 .4em; letter-spacing: -.2px; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 650;
  padding: 14px 30px;
  border-radius: var(--btn-radius);
  border: 1.5px solid var(--blue);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .06s ease, box-shadow .16s ease;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); text-decoration: none; color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 38px; font-size: 1.06rem; }

/* outline / secondary (used on dark sections) */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }

.btn--navy { background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); }

/* On blue / dark backgrounds the PRIMARY button is white with navy text */
.hero .btn:not(.btn--ghost),
.page-hero .btn:not(.btn--ghost),
.cta-band .btn:not(.btn--ghost),
.section-navy .btn:not(.btn--ghost),
.quote-box .btn:not(.btn--ghost),
.hero-split__center .btn:not(.btn--ghost) {
  background: #fff; color: var(--navy); border-color: #fff;
}
.hero .btn:not(.btn--ghost):hover,
.page-hero .btn:not(.btn--ghost):hover,
.cta-band .btn:not(.btn--ghost):hover,
.section-navy .btn:not(.btn--ghost):hover,
.quote-box .btn:not(.btn--ghost):hover,
.hero-split__center .btn:not(.btn--ghost):hover {
  background: var(--blue-50); color: var(--navy); border-color: var(--blue-50); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #ffffff; border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy); color: #b9c8dc; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--blue-300); text-decoration: none; }
.topbar .topbar__meta { display: flex; gap: 20px; flex-wrap: wrap; }

.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.16rem; letter-spacing: -.5px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo > span:last-child { line-height: 1.1; }
.logo .mark { min-width: 42px; height: 42px; padding: 0 10px; background: var(--navy); color: #fff; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.08rem; font-weight: 800; white-space: nowrap; letter-spacing: .5px; }
.logo .mark span { color: var(--blue-300); }
.logo .logo-img { height: 46px; width: auto; display: block; }
.logo--img { gap: 0; }
.logo small { display: block; font-size: .67rem; font-weight: 600; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; margin-top: 2px; }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; gap: 1px; }
.nav a.navlink { color: var(--ink); font-weight: 600; padding: 8px 11px; border-radius: 999px; font-size: .9rem; transition: background .15s, color .15s; white-space: nowrap; }
.nav a.navlink:hover { background: var(--blue-50); color: var(--blue-600); text-decoration: none; }
.navlink .caret { font-size: .7em; opacity: .65; margin-left: 1px; }
.has-drop { position: relative; }
.has-drop > .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px; display: none; flex-direction: column;
}
/* Invisible bridge across the 6px gap so the menu stays open while the
   cursor travels from the trigger down to the items. */
.has-drop > .dropdown::before {
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.has-drop:hover > .dropdown, .has-drop:focus-within > .dropdown { display: flex; }
.dropdown a { padding: 10px 14px; border-radius: 10px; color: var(--ink); font-size: .94rem; font-weight: 500; }
.dropdown a:hover { background: var(--blue-50); text-decoration: none; color: var(--blue-600); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 22px; font-size: .92rem; }

.menu-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 11px 20px; font-size: 1rem; cursor: pointer; font-weight: 600; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px; gap: 2px;
    box-shadow: var(--shadow-lg); max-height: 80vh; overflow-y: auto;
  }
  .site-header { position: relative; }
  .nav.open { display: flex; }
  .nav a.navlink { padding: 13px 12px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .has-drop > .dropdown { position: static; display: flex; box-shadow: none; border: 0; border-left: 2px solid var(--blue-100); border-radius: 0; margin: 4px 0 8px 12px; padding: 0; min-width: 0; }
  .nav-cta { margin: 12px 0 4px; }
  .nav-cta .btn { display: block; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-600) 55%, var(--blue-600) 135%); color: #fff; padding: 86px 0 92px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(110,162,255,.30), transparent 70%); pointer-events: none; }
.hero h1 { color: #fff; max-width: 880px; }
.hero .lead { font-size: 1.24rem; color: #cdd9ea; max-width: 660px; margin-bottom: 1.9em; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--blue-300); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; margin-bottom: 16px; }

.page-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-600) 70%, var(--blue-600) 150%); color: #fff; padding: 66px 0 70px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(110,162,255,.25), transparent 70%); pointer-events: none; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .lead { color: #cdd9ea; font-size: 1.18rem; max-width: 740px; margin-bottom: 0; }

/* Screen-reader-only (keeps an H1 for SEO without showing the old top bar) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Split hero (two core services) ---------- */
.hero-split { position: relative; color: #fff; overflow: hidden; padding: 0; margin: 0; }
.hero-split__grid { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.hero-split__grid::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: rgba(255,255,255,.22); z-index: 2; }
.hero-half {
  position: relative; min-height: 74vh; display: flex; isolation: isolate;
  padding: 132px 46px 120px; text-decoration: none; color: #fff; overflow: hidden;
}
.hero-half::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform .6s ease;
}
.hero-half:hover::before { transform: scale(1.06); }
.hero-half--left  { align-items: flex-end; justify-content: flex-start; }
.hero-half--right { align-items: flex-end; justify-content: flex-end; text-align: right; }
.hero-half--left::before {
  background-image: linear-gradient(180deg, rgba(11,37,69,.40) 0%, rgba(11,37,69,.86) 100%), url('/assets/img/gallery/haverhill-injection-moulding-machine.jpg');
  background-image: linear-gradient(180deg, rgba(11,37,69,.40) 0%, rgba(11,37,69,.86) 100%), image-set(url('/assets/img/gallery/haverhill-injection-moulding-machine.avif') type('image/avif'), url('/assets/img/gallery/haverhill-injection-moulding-machine.webp') type('image/webp'));
}
.hero-half--right::before {
  background-image: linear-gradient(180deg, rgba(8,26,48,.42) 0%, rgba(6,20,40,.90) 100%), url('/assets/img/gallery/plastic-injection-mould-tool.jpg');
  background-image: linear-gradient(180deg, rgba(8,26,48,.42) 0%, rgba(6,20,40,.90) 100%), image-set(url('/assets/img/gallery/plastic-injection-mould-tool.avif') type('image/avif'), url('/assets/img/gallery/plastic-injection-mould-tool.webp') type('image/webp'));
}
.hero-half__inner { position: relative; max-width: 440px; }
.hero-half__kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-300); margin-bottom: 10px; }
.hero-half__title { display: block; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.6px; line-height: 1.05; }
.hero-half__desc { display: block; color: #cfdaea; margin: 12px 0 16px; font-size: 1.05rem; line-height: 1.5; }
.hero-half__cta { display: inline-block; font-weight: 700; color: #fff; border-bottom: 2px solid var(--teal); padding-bottom: 3px; transition: color .15s, border-color .15s; }
.hero-half:hover .hero-half__title,
.hero-half:hover .hero-half__desc,
.hero-half:hover .hero-half__cta { color: var(--teal); }
.hero-half:hover .hero-half__cta { border-color: var(--teal); }

.hero-split__head { position: absolute; top: 0; left: 0; right: 0; z-index: 3; text-align: center; padding: 40px 24px 0; pointer-events: none; }
.hero-split__head .eyebrow { color: var(--blue-300); margin-bottom: 10px; }
.hero-split__head h1 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.15rem); max-width: 780px; margin: 0 auto; letter-spacing: -.5px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }

.hero-split__center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 4; text-align: center; }
.hero-split__center .btn { box-shadow: 0 12px 34px rgba(0,0,0,.4); }

@media (max-width: 860px) {
  .hero-split__grid { grid-template-columns: 1fr; }
  .hero-split__grid::after { display: none; }
  .hero-half { min-height: 46vh; align-items: flex-end; justify-content: flex-start; text-align: left; padding: 40px 24px; }
  .hero-half--right { text-align: left; }
  .hero-split__head { position: static; background: var(--navy); padding: 44px 22px 18px; pointer-events: auto; }
  .hero-split__center { position: static; transform: none; background: var(--navy); padding: 24px; }
  .hero-split__center .btn { width: 100%; max-width: 360px; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: .84rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 13px 0; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li + li::before { content: "→"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-600); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 32px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #c4d1e2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section-navy .section-head p { color: #aebed1; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.card h3 { margin-top: 0; }
.card p { color: var(--body); margin-bottom: .8em; font-size: .98rem; }
.card .card-link { font-weight: 650; color: var(--blue-600); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 18px; }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; }

/* Image-topped industry/category cards */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--blue-50); }
.card--media .card-media picture { display: block; width: 100%; height: 100%; }
.card--media .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.card--media:hover .card-media img { transform: scale(1.045); }
.card--media .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card--media .card-body h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card--media .card-body p { flex: 1 1 auto; margin-bottom: 14px; }
.card--media .card-body .card-link { margin-top: auto; }
.section-cta-row { text-align: center; margin-top: 30px; }
.section-cta-row a { font-weight: 650; color: var(--blue-600); }

.path-card { display: flex; flex-direction: column; justify-content: space-between; }
.path-card .need { font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-bottom: 8px; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
section.trust.tight { padding: 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; padding: 16px 24px; }
.trust .item { display: flex; align-items: center; gap: 9px; font-weight: 650; color: var(--navy); font-size: .95rem; }
.trust .item .tick { color: var(--ok); font-weight: 800; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding-left: 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; background: var(--blue-50); color: var(--blue-600); border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.step h3 { margin: 6px 0 6px; }
.step p { margin-bottom: 0; color: var(--body); }
/* Icon variant: swap the counter badge for an SVG icon */
.step--icon { counter-increment: step; }
.step--icon::before { content: none; }
.step-ico-box { position: absolute; left: 0; top: 0; width: 48px; height: 48px; background: var(--blue-50); color: var(--blue-600); border-radius: 14px; display: grid; place-items: center; z-index: 1; }
.step-ico-box svg { width: 26px; height: 26px; display: block; }

/* Homepage process — hexagon-icon steps (horizontal) */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.process-step { text-align: center; }
.process-step .step-ico { width: 100px; height: 100px; margin: 0 auto 14px; }
.process-step .step-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.process-step h3 { margin: 0 0 8px; font-size: 1.04rem; }
.process-step p { margin: 0; color: var(--body); font-size: .94rem; line-height: 1.55; }
@media (max-width: 1000px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq details[open] { border-color: var(--blue-100); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; color: var(--ink); position: relative; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--body); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Feature list ---------- */
.ticklist { list-style: none; padding: 0; }
.ticklist li { position: relative; padding-left: 32px; margin-bottom: .75em; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .96rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--blue-50); color: var(--navy); font-weight: 700; width: 32%; }
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy) 0%, var(--blue-600) 160%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #cdd9ea; max-width: 640px; margin: 0 auto 1.8em; font-size: 1.12rem; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Two column content ---------- */
.split { display: grid; grid-template-columns: 1.65fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.aside-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 104px; }
.aside-box h3 { margin-top: 0; }
.aside-box ul { padding-left: 1.1em; }
.aside-box.quote-box { background: var(--navy); color: #c4d1e2; border: 0; }
.aside-box.quote-box h3 { color: #fff; }
.aside-box.quote-box a:not(.btn) { color: #fff; }
/* Stacked sidebar: quote box + services nav scroll/stick together */
.aside-stack { position: sticky; top: 104px; display: grid; gap: 18px; }
.aside-stack .aside-box { position: static; top: auto; }
.services-box h3 { margin-bottom: 6px; }
.services-nav { list-style: none; padding: 0; margin: 0; }
.services-nav li + li { border-top: 1px solid rgba(255,255,255,.14); }
.services-nav a, .services-nav span { display: block; padding: 10px 0; font-size: .98rem; }
.services-nav a { transition: opacity .15s; }
.services-nav a:hover { opacity: .8; text-decoration: underline; }
.services-nav .is-current span { font-weight: 700; color: #fff; }
.services-nav .is-current span::before { content: "▸ "; color: var(--blue-300); }

/* ---------- Related links ---------- */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 600; color: var(--navy); transition: all .15s; }
.related-links a:hover { background: var(--blue); color: #fff; text-decoration: none; border-color: var(--blue); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr);} }
.stat .num { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.section-navy .stat .num { color: var(--blue-300); }
.section-navy .stat .lbl { color: #aebed1; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; color: var(--ink); font-size: .92rem; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }

/* ---------- File attach (contact form) ---------- */
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.dragover { border-color: var(--blue); background: var(--blue-50); }
.file-drop__icon { font-size: 1.5rem; }
.file-drop__text { font-size: .98rem; color: var(--ink); }
.file-drop__text strong { color: var(--blue-600); }
.file-drop__hint { font-size: .8rem; color: var(--muted); max-width: 360px; line-height: 1.4; }
.file-input:focus-visible + .file-list, .file-drop:focus-within { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.file-list { display: block; margin-top: 8px; }
.file-list .f { display: inline-block; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 6px; padding: 3px 9px; margin: 4px 6px 0 0; font-size: .84rem; color: var(--navy); }

/* ---------- Quote modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 24px 16px; background: rgba(11,37,69,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 560px; margin: auto; background: #fff; border-radius: 16px; padding: 30px 28px 28px; box-shadow: 0 24px 60px rgba(11,37,69,.35); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 0 6px 4px 0; font-size: 1.5rem; }
.modal__sub { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--blue-50); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .15s; }
.modal__close:hover { background: var(--blue-100); }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }

/* ---------- Article ---------- */
.article-body { max-width: 780px; }
.article-body h2 { margin-top: 1.7em; }
.article-body p, .article-body li { font-size: 1.07rem; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5em; }
.post-card .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--blue-600); }

/* ---------- ISO 9001 verification badge ---------- */
.iso-band { padding: 26px 0 8px; }
.iso-badge {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 20px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .12s;
}
.iso-badge:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(37,99,235,.16); transform: translateY(-2px); text-decoration: none; }
.iso-badge__seal { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); flex: none; }
.iso-badge:hover .iso-badge__seal { background: var(--blue); color: #fff; }
.iso-badge__txt { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.iso-badge__main { font-weight: 800; color: var(--navy); font-size: 1.02rem; letter-spacing: -.2px; }
.iso-badge__sub { font-size: .8rem; color: var(--muted); font-weight: 600; }
.iso-badge__ext { color: var(--blue-600); font-weight: 800; font-size: 1.05rem; margin-left: 2px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
/* mould-flow variant uses the teal accent to distinguish it from the ISO badge */
.iso-badge--flow .iso-badge__seal { background: rgba(22,182,201,.12); color: var(--teal); }
.iso-badge--flow:hover { border-color: var(--teal); box-shadow: 0 10px 26px rgba(22,182,201,.18); }
.iso-badge--flow:hover .iso-badge__seal { background: var(--teal); color: #fff; }
.iso-badge--flow .iso-badge__ext { color: var(--teal); }

/* inline ISO 9001 text links */
.iso-link { color: inherit; text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 2px; text-decoration-thickness: 1px; }
.iso-link:hover { color: var(--blue-600); text-decoration-color: var(--blue-600); }
.topbar .iso-link { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.topbar .iso-link:hover { color: var(--blue-300); }
.trust .iso-link, .section-navy .iso-link { color: inherit; }

/* ---------- Team / founders ---------- */
.team-card { text-align: left; }
.team-photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--blue-50); margin-bottom: 18px; }
.team-photo img, .team-photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-avatar { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 3.2rem; font-weight: 800; letter-spacing: 1px; color: var(--blue-600); background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); }
.team-card h3 { margin: 0 0 2px; }
.team-role { color: var(--blue-600); font-weight: 700; font-size: .92rem; margin: 0 0 .7em; }

/* ---------- Map ---------- */
.map-embed { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 700px){ .gallery { grid-template-columns: repeat(2,1fr);} }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.gallery figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery .ph { aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); background: var(--blue-50); font-size: .82rem; text-align: center; padding: 12px; }
.gallery figcaption { padding: 12px 14px; font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aebed1; padding: 64px 0 0; font-size: .94rem; }
.site-footer a { color: #cdd9ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo .mark { background: rgba(255,255,255,.1); }
.footer-brand p { color: #94a6bb; }
.footer-iso { display: inline-block; margin-top: 14px; background: #fff; padding: 8px; border-radius: 10px; line-height: 0; transition: transform .15s ease, box-shadow .15s ease; }
.footer-iso img { display: block; width: 96px; height: 96px; }
.footer-iso:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #7e92a8; }
.footer-credit { text-align: center; padding: 0 0 22px; font-size: .82rem; color: #6f859b; }
.footer-credit a { color: #aebed1; font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* ---------- Small-screen header refinements ---------- */
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .topbar { font-size: .78rem; }
  .topbar .wrap > span:first-child { display: none; }      /* hide ISO line, keep phone+email */
  .topbar .wrap { justify-content: flex-start; }
  .header-main { gap: 12px; min-height: 64px; }
  .logo { font-size: .98rem; white-space: normal; gap: 10px; line-height: 1.05; }
  .logo .mark { min-width: 38px; height: 38px; font-size: 1rem; }
  .logo small { display: none; }
  .menu-toggle { padding: 10px 16px; }
}

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 8px; top: 8px; }

.lead-intro { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.6; }

/* =========================================================
   Design refinements (subtle polish pass)
   ========================================================= */

/* --- Typography rhythm --- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.article-body p, .article-body li { max-width: 68ch; }
a:not(.btn):not(.navlink):not(.card-link) { text-underline-offset: 2px; text-decoration-thickness: 1px; }
:target { scroll-margin-top: 120px; }
h2[id], h3[id], section[id] { scroll-margin-top: 112px; }

/* --- Hero: subtle blueprint grid + keep content above pattern --- */
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(95deg, transparent 30%, #000 105%);
  mask-image: linear-gradient(95deg, transparent 30%, #000 105%);
}
.hero .eyebrow::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 34px; height: 2px; background: var(--blue-300); margin-left: 12px; opacity: .8;
}

/* --- Section heading accent bar (visual rhythm between sections) --- */
.section-head h2::before {
  content: ""; display: block; width: 46px; height: 4px; border-radius: 3px;
  background: var(--blue); margin: 0 0 20px;
}
.section-head.center h2::before { margin-left: auto; margin-right: auto; }
.section-navy .section-head h2::before { background: var(--blue-300); }

/* --- Process steps: connector line --- */
.steps { position: relative; }
.step { padding-bottom: 2px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 52px; height: calc(100% - 52px + 22px);
  width: 2px; background: linear-gradient(var(--blue-100), transparent); z-index: 0;
}
.step::before { z-index: 1; }

/* --- Cards & links detail polish --- */
.card { will-change: transform; }
.card--link:hover .card-link { color: var(--blue); }
.card .card-link { transition: color .15s; }
.related-links a { transition: background .15s, color .15s, border-color .15s, transform .12s; }
.related-links a:hover { transform: translateY(-1px); }

/* --- Buttons: gentle depth + lift --- */
.btn { box-shadow: 0 1px 2px rgba(11,37,69,.06); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { box-shadow: none; }

/* --- Trust strip: thin separators for a more 'designed' row --- */
@media (min-width: 760px) {
  .trust .item:not(:last-child)::after {
    content: ""; display: inline-block; width: 1px; height: 18px;
    background: var(--line); margin-left: 22px; vertical-align: middle;
  }
}

/* --- Spec table & FAQ micro-polish --- */
.spec-table th { font-size: .92rem; }
.faq summary { transition: color .15s; }
.faq summary:hover { color: var(--blue-600); }

/* --- Accessibility: visible focus ring --- */
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 6px;
}

/* --- Photographic hero banner (image + dark overlay) --- */
.page-hero--img { background: var(--navy); }
.page-hero--img::before, .page-hero--img::after { display: none; }
.page-hero--img .page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero--img .page-hero__media picture { display: block; width: 100%; height: 100%; }
.page-hero--img .page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero--img .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.86) 40%, rgba(11,37,69,.55) 100%);
}
.page-hero--img .wrap { position: relative; z-index: 1; }

/* --- Hero/page-hero spacing tune --- */
.hero { padding: 92px 0 100px; }
.page-hero { padding: 70px 0 76px; }
.hero .lead { color: #d3deec; }

/* --- Reduced motion respect --- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
