/* 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; fixkvar-specific additions at the end. */
/* Self-hosted fonts (2026-10-04): no render-blocking Google Fonts request, and a metric-matched fallback so the swap
   from the fallback to Montserrat does not reflow the page (it caused CLS ~0.35 on mobile). SIL Open Font License. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/montserrat-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-italic-400.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat Fallback'; src: local('Arial'), local('Liberation Sans'), local('Helvetica'); size-adjust: 113.39%; ascent-override: 85.79%; descent-override: 22.25%; line-gap-override: 0%; }

: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, 'Montserrat Fallback', 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; }

/* fixkvar additions: calculator, utility rules, status badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.badge-ok { background: #e3efc4; color: #34430c; }
.badge-none { background: #e6e6e1; color: var(--dark); }
.badge-partial { background: #fde3c8; color: #6b3500; }
.rule { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1rem 0; background: #fff; }
.rule h3 { margin-top: 0; }
.rule blockquote { margin: .75rem 0; padding: .5rem .9rem; border-left: 4px solid var(--blue); background: var(--paper); font-style: italic; }
.rule .src { font-size: .88rem; color: var(--muted); }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); padding: .15rem .35rem; border-radius: 4px; }
.calc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; background: #fff; max-width: 40rem; }
select.field { margin: .25rem 0 1rem; }
.calc label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
.calc input, .calc select, select.field { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #8b8c86; border-radius: 8px; background: #fff; color: var(--text); }
.calc .hint { font-size: .86rem; color: var(--muted); margin: .25rem 0 0; }
.calc button { margin-top: 1rem; border: 0; cursor: pointer; font: inherit; }
.calc-out { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: var(--paper); }
.calc-out .big { font-size: 1.6rem; font-weight: 700; color: var(--dark); }
.calc-error { color: #8a1c00; font-weight: 600; }
.city-facts { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .city-facts { grid-template-columns: repeat(2, 1fr); } }
.city-facts li { margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.city-facts strong { display: block; color: var(--dark); }
.state-list { columns: 2; column-gap: 1.5rem; padding-left: 1.1rem; }
@media (min-width: 760px) { .state-list { columns: 3; } }

/* FIXKVAR: annotated utility bill (home hero) */
.wordmark { font-size: 1.35rem; font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.wordmark span { color: var(--orange-text); }
.bill-fig { margin: 0; position: relative; padding-bottom: 1rem; }
.bill { background: #fff; border: 1px solid #e0dfd8; border-radius: 6px; padding: 1.2rem 1.1rem 1rem; box-shadow: 0 30px 60px rgba(57,58,54,.12); font-size: .9rem; min-width: 0; }
@media (min-width: 900px) { .bill { transform: rotate(-1deg); padding: 1.4rem 1.4rem 1.1rem; } }
.bill-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; margin-bottom: .8rem; }
.bill dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 1rem; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; color: #3b3c36; }
.bill dt, .bill dd { margin: 0; padding: .15rem .3rem; border-radius: 3px; }
.bill dd { text-align: right; }
.bill .pf { background: #fde9d4; box-shadow: 0 0 0 2px var(--orange); }
.bill .kvar { background: #dcecf8; }
.bill .note { margin: .8rem 0 0; font-size: .75rem; color: #6b6c66; }
.bill-callout { background: var(--dark); color: #fff; border-radius: 12px; padding: .9rem 1rem; font-size: .9rem; line-height: 1.45; box-shadow: 0 12px 30px rgba(31,32,29,.25); margin-top: 1rem; }
.bill-callout strong { color: var(--orange); display: block; margin-bottom: .2rem; }
@media (min-width: 900px) { .bill-callout { position: absolute; right: -12px; bottom: -8px; max-width: 240px; margin: 0; } }
.badge-pill { display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.topic-blocks { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .topic-blocks { grid-template-columns: repeat(3, 1fr); } }
.topic-blocks .k { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .1em; font-weight: 600; }
.topic-blocks h3 { margin: .4rem 0; }
.util-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .util-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .util-cards { grid-template-columns: repeat(4, 1fr); } }
.util-cards a { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.util-cards a:hover { box-shadow: 0 10px 28px rgba(31,32,29,.08); color: inherit; }
.util-cards strong { font-size: 1.15rem; color: var(--ink); }
.send-box { background: var(--dark); color: #fff; border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .send-box { grid-template-columns: 1.2fr 1fr; } }
.send-box h2 { color: #fff; margin: 0 0 .5rem; }
.send-box p { color: #d7d8d2; margin: 0; }
.send-box .cta-row { flex-direction: column; align-items: stretch; }
.send-box .btn-ghost { color: #fff; border-color: #8b8c86; }
.k-orange { color: var(--orange-text); } .k-blue { color: var(--blue-dk); } .k-green { color: #4f6a0c; }
/* 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; } }
