/* Gross Automation microsite base, light "B" direction (design canvas 2026-10-03; brand-guidelines.md):
   orange/dark/grays = base, blue = emphasis (links), lime = action. Montserrat. Mobile-first.
   Shared by foodandbevautomation.com and fixkvar.com; site-specific additions live at the end of each copy. */
:root {
  --orange: #F08A21; --orange-text: #9a4d06; --dark: #393A36; --ink: #1f201d; --blue: #2586C8; --blue-dk: #1c6aa0;
  --lime: #BCD85F; --lime-dk: #a9c64a; --text: #2b2c29; --muted: #55564f; --line: #e6e5df; --paper: #f6f5f1; --white: #fff;
  --wrap: 74rem; --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dk); text-underline-offset: 3px; }
a:hover { color: var(--blue-dk); text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; margin: 3rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .4rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Brand bar (built in CSS, never an image) */
.ga-brand-bar { height: 4px; background: linear-gradient(90deg, var(--orange) 25%, var(--dark) 25% 50%, var(--blue) 50% 75%, var(--lime) 75%); }

/* Header: brand left, nav right; nav collapses behind a toggle on small screens */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-squares { display: grid; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); gap: 3px; flex: none; }
.brand-squares span:nth-child(1) { background: var(--orange); } .brand-squares span:nth-child(2) { background: var(--dark); }
.brand-squares span:nth-child(3) { background: var(--blue); } .brand-squares span:nth-child(4) { background: var(--lime); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: .78rem; color: var(--muted); }
.nav-toggle { display: none; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 700; min-height: 44px; }
.site-nav { display: flex; width: 100%; flex-direction: column; padding: .25rem 0 1rem; }
.site-nav a { color: var(--dark); text-decoration: none; padding: .75rem 0; border-top: 1px solid var(--line); font-weight: 600; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.site-nav a.nav-cta { border-top: 0; margin-top: .5rem; text-align: center; }
@media (max-width: 979px) {
  .nav-ready .nav-toggle { display: block; }
  .nav-ready .site-nav { display: none; }
  .nav-ready .site-nav.open { display: flex; }
}
@media (min-width: 980px) {
  .header-row { flex-wrap: nowrap; }
  .site-nav { width: auto; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; }
  .site-nav a.nav-cta { margin: 0 0 0 .25rem; padding: .6rem 1.1rem; }
}

/* Buttons: lime = action; dark pill = primary on light; text link with lime underline */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent; max-width: 100%; overflow-wrap: anywhere; }
.split > *, .send-box > *, .hero-grid > *, .logbook > * { min-width: 0; }
.btn-action { background: var(--lime); color: var(--ink); }
.btn-action:hover { background: var(--lime-dk); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(240,138,33,.1); color: inherit; }
.btn-link { color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: inset 0 -3px 0 var(--lime); padding: .2rem 0; }
.btn-link:hover { color: var(--ink); box-shadow: inset 0 -6px 0 var(--lime); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Home hero (light, editorial) */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } .hero-grid.center { align-items: center; } }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); font-weight: 900; line-height: .98; letter-spacing: -0.025em; margin: 0; }
.hero h1 .hl { color: var(--orange-text); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 34em; }
.eyebrow { color: var(--orange-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 .5rem; }

/* Proof bar */
.proof { background: var(--dark); color: #fff; }
.proof .wrap { display: flex; flex-wrap: wrap; gap: .6rem 2.2rem; padding-top: 1.2rem; padding-bottom: 1.2rem; font-weight: 600; }
.proof .lead-item { color: var(--orange); font-weight: 800; }

/* Stats strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 760px) { .stats .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats strong { display: block; font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--ink); line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.paper { background: var(--paper); }
.section.ink { background: var(--ink); color: #fff; }
.section > .wrap > h2:first-child, .section h2.top { margin-top: 0; }
.split { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Inner page header */
.page-head { background: var(--paper); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .75rem; max-width: 22em; }
.page-head .eyebrow { margin-bottom: .4rem; }
.page-head .lead { font-size: clamp(1.02rem, 2vw, 1.15rem); color: var(--muted); max-width: 46rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: .75rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Content */
.content { padding-top: 1.75rem; padding-bottom: 3rem; }
.prose { max-width: 46rem; }
.prose li { margin-bottom: .55rem; }
.prose h2:first-child { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.25rem 0; }
.grid > * { min-width: 0; } /* let long content shrink inside grid columns */
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; background: #fff; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 28px rgba(31,32,29,.08); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 700; }
.callout { border: 1px solid #f3d3ae; background: #fdf3e7; padding: 1rem 1.2rem; border-radius: 12px; margin: 1.25rem 0; }
.facts { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; margin: 0; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; }
table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--paper); }
@media (max-width: 639px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: .75rem; overflow: hidden; }
  table.stack td { border: 0; border-top: 1px solid var(--line); }
  table.stack td:first-child { border-top: 0; background: var(--paper); font-weight: 700; }
  table.stack td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); }
}
.related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1rem; }

/* Numbered services */
.numbered { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .numbered { grid-template-columns: repeat(3, 1fr); } }
.numbered .num { display: block; font-size: 4rem; font-weight: 900; line-height: 1; color: #85837a; }
.numbered h3 { margin: .5rem 0 .4rem; font-size: 1.4rem; }

/* Colour tiles (contrast: dark text on orange/lime/white, white text on blue-dk/dark only) */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { border-radius: 18px; padding: 1.6rem; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; text-decoration: none; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile strong { font-size: 1.5rem; line-height: 1.15; }
.tile span { font-size: .95rem; line-height: 1.5; }
.tile.t-blue { background: var(--blue-dk); color: #fff; } .tile.t-blue:hover { color: #fff; }
.tile.t-orange { background: var(--orange); color: var(--ink); } .tile.t-orange:hover { color: var(--ink); }
.tile.t-lime { background: var(--lime); color: var(--ink); } .tile.t-lime:hover { color: var(--ink); }
.tile.t-dark { background: var(--dark); color: #fff; } .tile.t-dark:hover { color: #fff; }
.tile.t-line { background: #fff; color: var(--ink); border: 2px solid var(--ink); } .tile.t-line:hover { color: var(--ink); }

/* Ruled link list */
.ruled { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ruled { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; } }
.ruled li { margin: 0; border-top: 2px solid var(--ink); }
.ruled li:last-child { border-bottom: 2px solid var(--ink); }
@media (min-width: 640px) { .ruled li:nth-last-child(2) { border-bottom: 2px solid var(--ink); } }
.ruled a { display: block; padding: 1rem 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.ruled a:hover { color: var(--blue-dk); }

/* CTA band + footer */
.cta-band { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; margin-top: 0; font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 900; max-width: 16em; }
.cta-band h2 .hl { color: var(--lime); }
.cta-band p { color: #d7d8d2; max-width: 40em; font-size: 1.05rem; }
.cta-band .btn-ghost { color: #fff; border-color: #6b6c66; }
.site-footer { background: #fff; color: var(--muted); padding: 2.25rem 0 1.25rem; font-size: .92rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--dark); display: block; margin-bottom: .35rem; }
.site-footer p a { display: inline; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-head { font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; font-size: .82rem; }

/* Food & Beverage: log book vs batch record */
.logbook { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 900px) { .logbook { grid-template-columns: 1fr 1fr; align-items: start; } }
.paper-log { margin: 0; background: #fbf6e6; border: 1px solid #e3d9b8; border-radius: 6px; padding: 1.5rem; box-shadow: 0 18px 40px rgba(57,58,54,.10); transform: rotate(-.6deg); }
.paper-log .lines { font-family: Caveat, "Segoe Print", cursive; font-size: 1.55rem; line-height: 35px; color: #2e3a58; background-image: repeating-linear-gradient(transparent, transparent 34px, #d9cfae 34px, #d9cfae 35px); }
.paper-log .lines div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper-log .warn { color: #9a3b2a; }
.fig-label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.paper-log .fig-label, .paper-log .note { color: #6f6234; }
.paper-log .note { font-size: .8rem; margin: .5rem 0 0; }
.batch-record { margin: 0; background: var(--ink); color: #fff; border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.batch-record .fig-label { color: var(--lime); }
.batch-record dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .55rem 1rem; margin: 0; }
.batch-record dt { color: #b9bab4; } .batch-record dd { margin: 0; font-weight: 700; }
.batch-record dd.yes { color: var(--lime); }

/* Engineer · Build · Supply band (controls-engineering positioning, 2026-10-03) */
.pillars { border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars .wrap { grid-template-columns: repeat(3, 1fr); } }
.pillars a { display: flex; flex-direction: column; gap: .2rem; padding: 1.3rem 0; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); min-width: 0; }
.pillars a:first-child { border-top: 0; }
@media (min-width: 760px) { .pillars a { border-top: 0; padding: 1.5rem 1.5rem 1.5rem 0; } .pillars a + a { border-left: 1px solid var(--line); padding-left: 1.5rem; } }
.pillars a strong { font-size: 1.2rem; color: var(--ink); }
.pillars a:hover strong { color: var(--blue-dk); }
.pillars .k { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .1em; font-weight: 600; }
.k-orange { color: var(--orange-text); } .k-blue { color: var(--blue-dk); } .k-green { color: #4f6a0c; }
@media (min-width: 900px) { .numbered.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .numbered.four { grid-template-columns: repeat(4, 1fr); } }
/* Six nav items + CTA (Engineering added 2026-10-03): keep labels on one line; tighten spacing below 1200px */
@media (min-width: 980px) { .site-nav a { white-space: nowrap; } }
@media (min-width: 980px) and (max-width: 1199px) { .site-nav { gap: 1rem; font-size: .92rem; } .brand-text small { display: none; } }

/* grossmfg.com / grossengineering.com additions (2026-10-03) */
.site-footer a.inline { display: inline; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { border-top: 2px solid var(--ink); padding: .9rem 0; margin: 0; }
.checklist li:last-child { border-bottom: 2px solid var(--ink); }
.source { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 2rem; }
