/* ============================================================
General Business Services, INC. — countinv.com
Static rebuild (no WordPress). Brand colors pulled directly
from the original site's design data:
Deep blue #0305ab (primary / header / links)
Bright blue #0307dd (hover / accents)
Red #dd0303 (calls to action)
Charcoal #444444 (body text)
Slate gray #616161 (secondary text)
Off-white #f5f5f5 (section backgrounds)
============================================================ */

:root {
--blue-deep: #0305ab;
--blue-bright: #0307dd;
--red-cta: #dd0303;
--red-cta-hover: #b80202;
--charcoal: #2b2b2b;
--text-body: #444444;
--text-muted: #616161;
--bg-off: #f5f5f5;
--bg-white: #ffffff;
--border-soft: #e2e2e2;
--focus-ring: #ffb100;

--font-display: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
--font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

--max-width: 1180px;
--radius: 6px;
--shadow-card: 0 2px 14px rgba(3, 5, 171, 0.08);

--heading-color: var(--charcoal);
--accent-text: var(--blue-deep);
--accent-text-hover: var(--blue-bright);
--input-border: #c9c9c9;
}

/* Dark mode — toggled by adding data-theme="dark" to <html>. Set by
js/script.js (persisted in localStorage, defaults to the visitor's
OS-level color-scheme preference on first visit). Brand-colored
bands (topbar, hero, info bar, CTA band, footer) stay the same in
both themes; only the neutral page chrome and content surfaces
adapt via these variables. */
[data-theme="dark"] {
--text-body: #d4d4d8;
--text-muted: #9a9aa2;
--bg-off: #141416;
--bg-white: #1c1c1e;
--border-soft: #303034;
--heading-color: #f2f2f4;
--accent-text: #8b93ff;
--accent-text-hover: #aeb6ff;
--input-border: #45454a;
--shadow-card: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: var(--font-body);
color: var(--text-body);
background: var(--bg-white);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text-hover); }
h1, h2, h3, h4 {
font-family: var(--font-display);
color: var(--heading-color);
line-height: 1.2;
margin: 0 0 0.6em;
font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 24px;
}

/* Visible focus state everywhere (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
outline: 3px solid var(--focus-ring);
outline-offset: 2px;
}

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

/* ---------- Top utility bar ---------- */
.topbar {
background: var(--charcoal);
color: #fff;
font-size: 0.85rem;
}
.topbar .container {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 20px;
padding-top: 8px;
padding-bottom: 8px;
}
.topbar .tagline { margin-right: auto; color: #cfcfcf; letter-spacing: 0.02em; }
.topbar a.phone { color: #fff; font-weight: 600; }
.topbar a.phone:hover { color: var(--focus-ring); }
.topbar .quote-pill {
background: var(--red-cta);
color: #fff;
padding: 4px 12px;
border-radius: 999px;
font-weight: 600;
font-size: 0.78rem;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.theme-toggle {
background: none;
border: 1px solid rgba(255, 255, 255, 0.35);
color: #fff;
border-radius: 999px;
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 0.82rem;
line-height: 1;
padding: 0;
flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------- Header / nav ---------- */
.site-header {
border-bottom: 1px solid var(--border-soft);
background: var(--bg-white);
position: sticky;
top: 0;
z-index: 50;
}
.site-header .container {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding-top: 14px;
padding-bottom: 14px;
}
.site-header .logo-link { display: flex; align-items: center; gap: 12px; }
.site-header .logo-link img { height: 56px; width: auto; }
.site-header .logo-text {
font-family: var(--font-display);
font-weight: 800;
color: var(--accent-text);
font-size: 1rem;
line-height: 1.25;
max-width: 260px;
}

.main-nav ul { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.main-nav a {
display: block;
padding: 10px 14px;
color: var(--heading-color);
font-weight: 600;
font-size: 0.95rem;
border-radius: var(--radius);
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
background: var(--bg-off);
color: var(--accent-text);
}

.nav-toggle {
display: none;
background: none;
border: 2px solid var(--accent-text);
border-radius: var(--radius);
padding: 8px 10px;
font-size: 1.1rem;
color: var(--accent-text);
cursor: pointer;
}

@media (max-width: 780px) {
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
.main-nav {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--bg-white);
border-bottom: 1px solid var(--border-soft);
display: none;
}
.main-nav.open { display: block; }
.main-nav ul { flex-direction: column; padding: 8px 24px 16px; }
.topbar .tagline { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
display: inline-block;
font-weight: 700;
font-size: 0.85rem;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 13px 26px;
border-radius: var(--radius);
border: 2px solid transparent;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--red-cta); color: #fff; }
.btn-primary:hover { background: var(--red-cta-hover); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-deep); }
.btn-outline-blue { background: transparent; border-color: var(--accent-text); color: var(--accent-text); }
.btn-outline-blue:hover { background: var(--blue-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero {
position: relative;
background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue-bright) 100%);
color: #fff;
overflow: hidden;
}
.hero .container {
padding-top: 90px;
padding-bottom: 100px;
position: relative;
z-index: 2;
}
.hero .eyebrow {
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.8rem;
font-weight: 700;
color: #cfd6ff;
margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero p.lead { color: #e4e7ff; max-width: 560px; font-size: 1.1rem; }
.hero .cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Barcode motif — signature element, ties to the subject (inventory
counting / SKU scanning). A row of uneven vertical bars, styled
like a barcode being "counted" left to right. */
.barcode-strip {
position: absolute;
inset: 0;
z-index: 1;
display: flex;
align-items: flex-end;
gap: 3px;
padding: 0 0 0 0;
opacity: 0.16;
pointer-events: none;
}
.barcode-strip span {
display: block;
background: #fff;
width: 6px;
}
.page-hero {
background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue-bright) 100%);
color: #fff;
position: relative;
overflow: hidden;
}
.page-hero .container { padding-top: 56px; padding-bottom: 56px; position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .breadcrumb { color: #cfd6ff; font-size: 0.9rem; }
.page-hero .breadcrumb a { color: #cfd6ff; }
.page-hero .breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-off); }
.section-header { max-width: 720px; margin: 0 0 36px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.two-col {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 48px;
align-items: center;
}
.two-col.reverse .col-media { order: 2; }
@media (max-width: 860px) {
.two-col, .two-col.reverse .col-media { grid-template-columns: 1fr; order: 0; }
.two-col { display: block; }
.two-col .col-media { margin-top: 28px; }
}
.col-media img {
border-radius: var(--radius);
box-shadow: var(--shadow-card);
width: 100%;
aspect-ratio: 4/3;
object-fit: cover;
}

.photo-trio {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
margin: 40px 0;
}
.photo-trio img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-card); }
@media (max-width: 700px) {
.photo-trio { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards / lists ---------- */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
background: var(--bg-white);
border: 1px solid var(--border-soft);
border-left: 4px solid var(--accent-text);
padding: 10px 16px;
border-radius: var(--radius);
font-weight: 600;
font-size: 0.92rem;
color: var(--heading-color);
}

.industry-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px 32px;
}
.industry-grid li {
list-style: none;
padding: 10px 0;
border-bottom: 1px solid var(--border-soft);
font-weight: 600;
}
@media (max-width: 700px) { .industry-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Testimonials ---------- */
.testimonial-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.testimonial {
background: var(--bg-white);
border: 1px solid var(--border-soft);
border-top: 4px solid var(--red-cta);
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow-card);
display: flex;
flex-direction: column;
}
.testimonial blockquote {
margin: 0 0 14px;
font-size: 0.95rem;
color: var(--text-body);
flex-grow: 1;
}
.testimonial cite {
font-style: normal;
font-weight: 700;
color: var(--accent-text);
font-size: 0.88rem;
}

/* ---------- Partners strip ---------- */
.partners-strip {
display: flex;
flex-wrap: wrap;
gap: 32px;
align-items: center;
justify-content: center;
}
.partners-strip img { max-height: 56px; width: auto; filter: grayscale(35%); opacity: 0.85; }
.partners-strip a:hover img { filter: none; opacity: 1; }

/* ---------- Info bar (service area / address / hours / phone) ---------- */
.info-bar {
background: var(--charcoal);
color: #eee;
}
.info-bar .container {
padding: 44px 24px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 32px;
}
.info-bar h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.info-bar ul { list-style: none; columns: 2; gap: 8px; }
.info-bar li { padding: 3px 0; font-size: 0.92rem; }
.info-bar a { color: #fff; }
.info-bar img { border-radius: var(--radius); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
background: var(--red-cta);
color: #fff;
text-align: center;
}
.cta-band .container { padding: 56px 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e3; max-width: 620px; margin: 0 auto 24px; }

/* ---------- Forms ---------- */
.form-card {
background: var(--bg-white);
border: 1px solid var(--border-soft);
border-radius: var(--radius);
box-shadow: var(--shadow-card);
padding: 32px;
max-width: 640px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
display: block;
font-weight: 700;
font-size: 0.9rem;
margin-bottom: 6px;
color: var(--heading-color);
}
.form-row .hint { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
width: 100%;
padding: 11px 13px;
border: 1px solid var(--input-border);
border-radius: var(--radius);
font-family: var(--font-body);
font-size: 0.95rem;
color: var(--text-body);
background: var(--bg-white);
}
textarea { min-height: 130px; resize: vertical; }
.required-mark { color: var(--red-cta); }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: -6px; margin-bottom: 20px; }
.form-status {
display: none;
padding: 14px 16px;
border-radius: var(--radius);
margin-bottom: 20px;
font-weight: 600;
font-size: 0.92rem;
}
.form-status.success { background: #e6f6ec; color: #1c6b3a; }
.form-status.error { background: #fdeaea; color: var(--red-cta-hover); }

/* honeypot field, hidden from real people */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Map placeholder ---------- */
.map-embed {
border-radius: var(--radius);
overflow: hidden;
box-shadow: var(--shadow-card);
border: 1px solid var(--border-soft);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
background: #1c1c1c;
color: #b9b9b9;
font-size: 0.88rem;
}
.site-footer .container {
padding: 32px 24px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; }

/* ---------- Skip link ---------- */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
background: var(--blue-deep);
color: #fff;
padding: 10px 16px;
z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
