/* A2Z Autopaint Supplies — one stylesheet for every page.
   Look: charcoal and warm off-white with one safety-yellow accent, like a well-kept trade counter.
   Headings use Archivo (loaded in src/html.mjs), set slightly wide; body text uses the system font. */

:root {
  --ink: #15171a;          /* text, dark panels */
  --ink-2: #23272d;        /* raised dark panels */
  --paper: #f6f4ef;        /* page background */
  --white: #ffffff;
  --accent: #ffc20e;       /* safety yellow: buttons, highlights */
  --accent-deep: #e0a800;  /* accent on hover */
  --on-accent: #15171a;    /* text that sits on the accent color */
  --accent-2: #ff8a00;     /* the accent's gradient partner */
  /* Gradients, built from the palette colors above so every palette gets its own */
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-dark: radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
               radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
               linear-gradient(160deg, var(--ink-2), var(--ink) 60%);
  --muted: #5d636b;
  --muted-on-dark: #b9bec5;
  --line: #e4e0d7;
  --kcc: #102966;          /* KCC's brand blue, used only on its wordmark */
  --smirdex: #db1f26;      /* Smirdex red, used only on its wordmark (brand-reference.md) */
  --open: #1f9d55;         /* "Open now" dot */
  --closed: #c0392b;       /* "Closed now" dot */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21, 23, 26, .06), 0 8px 24px rgba(21, 23, 26, .06);
  --shadow-hover: 0 2px 4px rgba(21, 23, 26, .08), 0 16px 36px rgba(21, 23, 26, .12);
  --head: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Full-width section backgrounds reach past the page edges; clip them so the page never scrolls sideways.
   (clip, not hidden: hidden would stop the header from sticking.) */
html, body { overflow-x: clip; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { background: var(--accent); color: var(--on-accent); text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--head); font-stretch: 112%; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .85em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.18rem; max-width: 38em; }
.big { font-family: var(--head); font-size: 1.8rem; font-weight: 800; }
.big a { text-decoration: none; }
.note { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--accent); padding: .75rem 1rem; border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections. A band is one section of a page; band-alt paints a white background out to the
   window edges (the shadow + clip-path trick, so no extra markup is needed). */
.band { padding: 4rem 20px; }
.band-alt { background: var(--white); box-shadow: 0 0 0 100vmax var(--white); clip-path: inset(0 -100vmax); }
.band-alt::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: linear-gradient(180deg, var(--white), color-mix(in srgb, var(--paper) 70%, var(--white))); }
.band-alt { position: relative; isolation: isolate; }
.band > h2 + p { color: var(--muted); max-width: 44em; }
.band > h2:not(.category)::after, .band .grid > div > h2::after { content: ""; display: block; width: 64px; height: 5px; margin-top: .6rem; border-radius: 3px; background: var(--grad); }
.cta > h2::after { margin-left: auto; margin-right: auto; background: var(--on-accent) !important; opacity: .8; }
.more { margin-top: 2rem; text-align: center; }

/* Header */
.site-header { background: var(--ink); color: var(--white); border-bottom: 2px solid transparent; border-image: var(--grad) 1; }
.header-row { display: flex; align-items: center; gap: 1.5rem; padding-top: 12px; padding-bottom: 12px; }
.logo { display: block; }
.logo:hover { background: none; }
.logo img { width: 112px; height: 50px; }
.nav { display: flex; gap: .25rem 1.4rem; flex: 1; }
.nav a { color: var(--muted-on-dark); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.nav a:hover { color: var(--white); background: none; }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent); }
.header-call { color: var(--on-accent); background: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; padding: .5rem 1rem; border-radius: 999px; }
.header-call:hover { background: var(--white); color: var(--ink); }
.menu-toggle { display: none; }
.action-bar { display: none; }

/* Buttons: yellow is the main action; the second button is dark (or an outline on dark backgrounds) */
.buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.3rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; border: 2px solid var(--accent); transition: transform .12s, background-color .12s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn-alt { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-alt:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-plain { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-plain:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dark .btn-alt, .dark .btn-plain { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.dark .btn-alt:hover, .dark .btn-plain:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Dark areas: the home hero */
.dark { background: var(--grad-dark); color: var(--white); }
.dark a:not(.btn) { color: var(--white); }
.dark a:not(.btn):hover { color: var(--on-accent); }
.dark .lead, .dark p { color: #d8dce1; }
.hl { color: var(--accent); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Hero (home page) */
.hero { padding: 4rem 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-photo { border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(1.5deg); }
.hero-address { font-size: .95rem; }

/* Quick facts, the last row of the hero */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.stats div { padding: 1.5rem 1rem 1.75rem; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.stats strong { display: block; font-family: var(--head); font-stretch: 112%; font-size: clamp(1.75rem, 2.4vw - 3px, 2rem); /* "Gleam + KCC" fits a quarter-width cell */ font-weight: 800; line-height: 1; color: var(--accent); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats span { display: block; margin-top: .35rem; color: var(--muted-on-dark); font-size: .92rem; line-height: 1.35; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid.center { align-items: center; gap: 3rem; }
.card { border-radius: var(--radius); padding: 1.35rem; background: var(--white); border: 1px solid var(--line); }
.band-alt .card { background: var(--paper); }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover, .band-alt .card-link:hover { background: var(--white); box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.card-link h3::after { content: "\a0→"; color: var(--accent-deep); } /* no-break space keeps the arrow with the last word */
.card-photo { border-radius: var(--radius-sm); margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--white); }
.card-art { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), repeating-linear-gradient(135deg, var(--ink) 0 18px, var(--ink-2) 18px 36px); }
.card-art span { color: var(--accent); font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.framed { border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery + h2 { margin-top: 2.5rem; }

/* Paint-line cards (src/html.mjs lineCard): the logo or wordmark in a fixed-size panel beside what we
   stock from that line. Gleam, KCC and the Smirdex abrasives card all use it. */
.line-logo { max-height: 90px; width: auto; margin-bottom: .6rem; }
.line-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 1.25rem; }
.line-card .line-logo, .line-wordmark { box-sizing: border-box; flex: none; width: 168px; height: 104px; padding: 1rem; border-radius: var(--radius-sm); margin: 0; object-fit: contain; }
.line-card .line-logo { background: var(--white); border: 1px solid var(--line); }
.line-wordmark { display: flex; align-items: center; justify-content: center; font-family: var(--head); font-size: 2.6rem; font-weight: 800; letter-spacing: .04em; color: var(--white); background: var(--kcc); text-transform: uppercase; }
.line-wordmark-smirdex { background: var(--smirdex); font-size: 1.75rem; font-style: italic; letter-spacing: .02em; }
.line-body { min-width: 0; flex: 1 1 14rem; } /* under 14rem beside the logo, it wraps below it */
.line-tagline { font-weight: 600; margin-bottom: .6rem; }
.line-card .pills { margin-bottom: .75rem; }
.line-card .pills span { font-size: .8rem; padding: .2rem .65rem; }
.line-cta { font-weight: 700; font-size: .95rem; }
.line-cta::after { content: "\a0→"; color: var(--accent-deep); }
.lines-extra { margin-top: 1.25rem; }

/* Brands shown by logo (shelfBrands): the logo on a white plate, so black artwork always reads */
.shelf-brands { margin: 1.5rem 0 .5rem; }
.brand-logo-card { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.brand-logo-card img { flex: none; width: auto; height: 64px; max-width: 45%; object-fit: contain; }
.band-alt .brand-logo-card, .brand-logo-card { background: var(--white); }
.brand-logo-card p { margin: 0; font-size: .95rem; flex: 1 1 12rem; }
.section-brands { margin: 0 0 2rem; }
.grid-2 > img { width: 100%; }
/* A paint line's own page: the logo on a white plate beside the name */
.line-head { display: flex; align-items: center; gap: 2rem; }
.line-head .line-logo, .line-head .line-wordmark { box-sizing: border-box; flex: none; width: 232px; height: 144px; padding: 1.4rem; margin: 0; border-radius: var(--radius); object-fit: contain; }
.line-head .line-logo { max-height: none; background: var(--white); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.line-head .lead { margin-bottom: 0; }
.feature-logo { box-sizing: content-box; height: 26px; width: auto; padding: .45rem .7rem; margin-bottom: .6rem; background: var(--white); border-radius: var(--radius-sm); }
.feature-note { max-width: 38em; }

/* "Open now · until 5pm" (src/site.js); plain hours until the script runs */
.open-status { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; margin: .25rem 0 1rem; }
.open-status .dot { flex: none; width: .62rem; height: .62rem; border-radius: 50%; background: var(--muted); }
.open-status.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px color-mix(in srgb, var(--open) 22%, transparent); }
.open-status.is-closed .dot { background: var(--closed); }
.open-status.on-dark { color: var(--white); }
.open-status.on-dark.is-open .dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .22); }

/* Small rounded labels: brand names, and links to product sections */
.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 0; }
.pills a, .pills span { display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.card .pills a, .card .pills span { background: var(--paper); }
.pills a:hover, .card .pills a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.brand-group { margin-top: 1.5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-stretch: 100%; }

/* Call-to-action band: yellow, full width */
.cta { text-align: center; color: var(--on-accent); position: relative; isolation: isolate; clip-path: inset(0 -100vmax); }
.cta::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--grad); }
.band.cta > h2 + p { color: var(--on-accent); margin-left: auto; margin-right: auto; }
.cta .buttons { justify-content: center; }
.cta .btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cta .btn-alt { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
.cta .btn:hover { background: var(--ink-2); color: var(--white); }
.places { font-weight: 600; }
.facts { padding-left: 1.2rem; }
.facts li, .areas li { margin-bottom: .45rem; }
.facts li::marker { color: var(--accent-deep); }

/* Page heads (every page but home): a dark full-width band */
.page-head { padding-top: 3rem; padding-bottom: 3rem; color: var(--white); position: relative; isolation: isolate; clip-path: inset(0 -100vmax); }
.page-head::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--grad-dark); }
.page-head .lead, .page-head p { color: #d8dce1; }
.page-head a:not(.btn) { color: var(--white); }
.page-head a:not(.btn):hover { color: var(--on-accent); }
.page-head .btn-alt { background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--white); }
.page-head .btn-alt:hover { background: var(--white); color: var(--ink); }
.page-head .rounded { box-shadow: 0 24px 48px rgba(0, 0, 0, .4); }
.crumb { margin: 0 0 .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.page-head .crumb a { color: var(--accent); text-decoration: none; }

/* Product lists: two columns on wide screens */
.products { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.products li { padding: .75rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .25rem .7rem; align-items: baseline; }
.product-name { font-weight: 600; }
.product-brand { font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem; }
.product-options { flex-basis: 100%; color: var(--muted); font-size: .93rem; }
.category { margin-top: 2rem; margin-bottom: .25rem; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-stretch: 100%; }
.product-section { margin-top: 3rem; }
.product-section > summary { list-style: none; cursor: pointer; }
.product-section > summary::-webkit-details-marker { display: none; }
.product-section > summary h2 { display: flex; align-items: center; gap: .75rem; padding-bottom: .5rem; border-bottom: 3px solid var(--ink); }
.product-section > summary h2::after { content: ""; margin-left: auto; width: .6rem; height: .6rem; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
.product-section[open] > summary h2::after { transform: translateY(25%) rotate(-135deg); }
.product-section > summary:hover h2 { color: var(--accent-deep); }
.section-count { font-family: system-ui, sans-serif; font-stretch: 100%; font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem; }
.search p:empty { display: none; }
.jump { display: flex; flex-wrap: wrap; gap: .45rem; }
.jump a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: .88rem; }
.jump a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Search: stays under the header while scrolling the list on bigger screens */
.search { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: end; background: var(--white); border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; position: sticky; top: 86px; z-index: 5; box-shadow: var(--shadow); }
.search label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: .3rem; }
.search input, .search select { font: inherit; padding: .6rem .8rem; border: 1px solid #cfcabf; border-radius: var(--radius-sm); min-width: 15rem; max-width: 100%; background: var(--paper); color: var(--ink); }
.search input:focus, .search select:focus { border-color: var(--ink); background: var(--white); }
.search p { margin: 0; }

/* Map and "where we are" */
.fb-feed { display: block; width: 100%; max-width: 500px; height: 700px; margin: 1.5rem auto 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.map { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--line); }
.find-us { align-items: stretch; gap: 2.5rem; margin-bottom: 1rem; }
.address { font-family: var(--head); font-size: 1.25rem; line-height: 1.45; padding: .2rem 0 .2rem 1rem; border-left: 5px solid transparent; border-image: var(--grad) 1; }
.store-photo { margin: 1.5rem 0 0; }
.store-photo figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }
.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-side .map { flex: 1; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.contact-cards .card h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.contact-cards .wide { grid-column: 1 / -1; }
.contact-cards .buttons { margin-bottom: 0; }
[id] { scroll-margin-top: 96px; }

/* Footer */
.site-footer { background: var(--grad-dark); color: var(--muted-on-dark); padding: 3.5rem 0 2.5rem; border-top: 4px solid transparent; border-image: var(--grad) 1; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--on-accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-grid p { margin-bottom: .5rem; }
.footer-name { font-family: var(--head); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; color: var(--white); }
.social { display: flex; gap: .75rem; align-items: flex-start; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .15); transition: background-color .12s, color .12s; }
.social a:hover { background: var(--grad); color: var(--on-accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }

/* Palettes for the preview picker (src/palette.js). Each one only swaps colors; the default
   above is "Safety yellow". Once one is chosen, copy its values into :root and delete the rest. */
:root[data-palette="red"] { --accent-2: #b3123f; --ink: #17181c; --ink-2: #26282e; --paper: #f7f5f2; --accent: #e3262b; --accent-deep: #c21b20; --on-accent: #ffffff; }
:root[data-palette="orange"] { --accent-2: #ffb020; --ink: #0f1d36; --ink-2: #1a2b4b; --paper: #f5f3ee; --line: #e2ddd2; --accent: #ff7a1a; --accent-deep: #e8660a; --on-accent: #10151f; --muted-on-dark: #b3bccb; }
:root[data-palette="green"] { --accent-2: #f0c95a; --ink: #11241c; --ink-2: #1c3429; --paper: #f4f1e9; --line: #e2dccd; --accent: #d9a636; --accent-deep: #c08f22; --on-accent: #11241c; --muted-on-dark: #b3c2b9; }
:root[data-palette="blue"] { --accent-2: #7a3cff; --ink: #0c0e13; --ink-2: #1a1e27; --paper: #f3f5f8; --line: #dfe3ea; --accent: #2d6bff; --accent-deep: #1d56e0; --on-accent: #ffffff; }
:root[data-palette="teal"] { --accent-2: #2fd7ff; --ink: #0e1f24; --ink-2: #183139; --paper: #f2f5f4; --line: #dce4e2; --accent: #1cc3ae; --accent-deep: #13a894; --on-accent: #0b1a1d; --muted-on-dark: #a9bfc0; }
:root[data-palette="lime"] { --accent-2: #3ed68a; --ink: #1a1c1e; --ink-2: #292c2f; --paper: #f4f5f1; --line: #e0e2db; --accent: #a5e030; --accent-deep: #8cc41c; --on-accent: #15171a; }
:root[data-palette="purple"] { --accent-2: #ff8a4c; --ink: #17132a; --ink-2: #251f3e; --paper: #f6f4f9; --line: #e3dfeb; --accent: #ff4f9a; --accent-deep: #e83a85; --on-accent: #17132a; --muted-on-dark: #bdb6d3; }

/* The palette picker itself (preview only) */
.palette-picker { position: fixed; left: 16px; bottom: 16px; z-index: 50; font: 14px/1.3 system-ui, sans-serif; }
.palette-picker > button { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border: 0; border-radius: 999px; background: var(--white); color: #15171a; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font: inherit; font-weight: 600; cursor: pointer; }
.palette-picker .panel { position: absolute; left: 0; bottom: calc(100% + 8px); width: 240px; padding: .5rem; background: #fff; color: #15171a; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.palette-picker .panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.palette-picker .panel button:hover, .palette-picker .panel button[aria-pressed="true"] { background: #f0efea; }
.palette-picker .panel button[aria-pressed="true"] { font-weight: 700; }
.swatch { display: inline-flex; flex: none; width: 36px; height: 20px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch i { flex: 1; }

/* Wide screens: keep the header in view */
@media (min-width: 801px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
}

/* Tablets and small laptops: the hero stats go 2 x 2 so each headline stays on one line */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .stats strong { font-size: 1.9rem; }
}

/* Phones and small tablets */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .band { padding: 2.75rem 20px; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .grid-2, .grid-3, .footer-grid, .products { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero-photo { transform: none; }
  .stats { margin-top: 2.5rem; }
  .header-row { flex-wrap: wrap; gap: .5rem 1rem; }
  .header-call { margin-left: auto; padding: .4rem .85rem; font-size: .9rem; }
  .footer-grid nav { gap: 0; }
  .footer-grid nav a { padding: .6rem 0; } /* about 44 px tall: an easy tap */
  .pills a { padding: .5rem .9rem; }
  .jump a { padding: .55rem .95rem; }
  /* One row of links that scrolls sideways, instead of wrapping onto two rows */
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; gap: 1.2rem; padding-right: 2rem;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  /* Search: one slim row that stays under the header */
  .search { top: 60px; padding: .6rem; gap: .5rem; margin-left: -8px; margin-right: -8px; flex-wrap: wrap; }
  .search .label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search input, .search select { min-width: 0; width: 100%; padding: .6rem .65rem; }
  .search-q { flex: 1 1 55%; }
  .search-brand { flex: 1 1 30%; }
  .search p { flex-basis: 100%; font-size: .85rem; }
  /* Product sections read as a folding list */
  .product-section { margin-top: 0; }
  .product-section > summary h2 { font-size: 1.2rem; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .product-section[open] > summary h2 { border-bottom: 3px solid var(--ink); margin-bottom: .25rem; }
  .jump { display: none; } /* the folding section headings below do this job on phones */
  .map { min-height: 0; aspect-ratio: 4 / 3; }
  .contact-cards { grid-template-columns: 1fr; }
  .grid.center { gap: 2rem; }
  .fb-feed { height: 560px; }

  /* What we stock: two small tiles per row instead of one long column */
  .grid.stock-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stock-grid .card { padding: .6rem; }
  .stock-grid .card-photo { margin-bottom: .55rem; }
  .stock-grid h3 { font-size: .98rem; margin: 0 .15rem .2rem; }
  .stock-grid p { display: none; }
  .stock-grid .card-art span { font-size: 1rem; }

  /* Who we serve: cards in a row you swipe through, with the next one peeking in */
  .grid.audience-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto;
    scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px .75rem; scroll-padding: 0 20px; scrollbar-width: thin; }
  .audience-grid > .card { scroll-snap-align: start; }

  /* Header on phones: stays at the top, with a Menu button (src/site.js). Without JavaScript the
     links stay a sideways-scrolling row, as above. */
  .site-header { position: sticky; top: 0; z-index: 20; }
  .js .header-row { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
  .js .logo img { width: 92px; height: 41px; }
  .js .header-call { display: none; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; min-height: 42px; padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
  .js .menu-toggle svg { width: 20px; height: 20px; }
  .js .menu-toggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; order: 0; flex-basis: auto;
    overflow: visible; padding: .25rem 20px 1rem; background: var(--ink); border-bottom: 2px solid var(--accent);
    -webkit-mask-image: none; mask-image: none; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
  .js.menu-open .nav { display: flex; }
  .js .nav a { padding: .9rem 0; font-size: 1.08rem; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .js .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: rgba(255, 255, 255, .1); }

  /* Call, Text, Directions: always within thumb reach */
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); border-top: 2px solid var(--accent); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 58px;
    color: var(--white); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
  .action-bar a:first-child { background: var(--accent); color: var(--on-accent); }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
  .action-bar a:hover { background: var(--ink-2); color: var(--white); }
  .action-bar a:first-child:hover { background: var(--accent-deep); color: var(--on-accent); }
  .action-bar svg { width: 22px; height: 22px; }
  /* Room under the footer for the bar, in the footer's own dark color */
  .site-footer { padding-bottom: calc(2.5rem + 60px + env(safe-area-inset-bottom)); }
  .palette-picker { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .buttons .btn { flex: 1 1 auto; }
  .line-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .line-card .line-logo, .line-card .line-wordmark { width: 100%; height: 84px; padding: .85rem 18%; }
  .line-body, .brand-logo-card p { flex: none; }
  .line-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .line-head .line-logo, .line-head .line-wordmark { width: 168px; height: 104px; padding: 1rem; }
  .stats strong { font-size: 1.55rem; }
  .brand-logo-card { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .brand-logo-card img { max-width: 100%; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link, .social a, .product-section > summary h2::after { transition: none; }
}
