/* ============================================================
   site-chrome.css — the inventory header and footer bars on the
   website pages (Home, About, Contact — site/bootstrap.php).

   Same look as on Results / View Cart (assets/css/style.css), but
   every rule is scoped to .inv-chrome so the website template's own
   styles are untouched, and the template's styles (.brand,
   .footer-copy, p, img, …) can't change the bars. The var(--…)
   values come from Admin → Theme Settings, set on .inv-chrome only
   (see theme_scoped_head_tags() in includes/theme.php).
   ============================================================ */

/* The wrapper adds no box of its own, so the header can still stick
   to the top of the page while scrolling. */
.inv-chrome { display: contents; }

.inv-chrome .site-header,
.inv-chrome .site-footer {
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.inv-chrome *,
.inv-chrome *::before,
.inv-chrome *::after { box-sizing: border-box; }
.inv-chrome a { text-decoration: none; }

/* ---------------- Header ---------------- */
.inv-chrome .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 32px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 60;
    margin: 0;
}
.inv-chrome .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.inv-chrome .brand .logo {
    display: block;
    height: 38px;
    width: auto;
    max-width: none;
    border-radius: var(--radius-sm);
}
.inv-chrome .company-name {
    font-family: var(--company-name-font);
    font-weight: var(--company-name-weight);
    font-size: var(--company-name-size);
    letter-spacing: 0.2px;
    line-height: 1.3;
    color: var(--company-name-color);
    white-space: normal;
}
.inv-chrome .main-nav ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}
.inv-chrome .main-nav li { margin: 0; padding: 0; }
.inv-chrome .main-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--nav-text);
    font-weight: var(--nav-font-weight);
    font-size: var(--nav-font-size);
    transition: all 0.2s ease;
}
.inv-chrome .main-nav a:hover {
    color: var(--nav-hover-text);
    background: var(--nav-hover-bg);
    box-shadow: inset 0 0 0 1px var(--header-border);
}
.inv-chrome .nav-account {
    font-size: var(--nav-account-size);
    color: var(--nav-account-text);
    padding-left: 10px;
    margin-left: 4px;
    border-left: 1px solid var(--header-border);
}
.inv-chrome .nav-account a { color: var(--nav-text); font-weight: var(--nav-font-weight); }

/* ---------------- Footer ----------------
   Compact, like Results: no gap above it, tight lines, Tel | email
   on one line. */
.inv-chrome .site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
    margin: 0;
    padding: 34px 24px;
}
.inv-chrome .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    font-size: var(--footer-font-size);
    line-height: 1.5;
}
.inv-chrome .site-footer p { margin: 0; font-size: inherit; }
.inv-chrome .footer-inner a { color: var(--footer-link); }
.inv-chrome .footer-company { color: var(--footer-heading); font-weight: 700; }
.inv-chrome .footer-copy { font-size: inherit; }
.inv-chrome .footer-version { color: var(--footer-text); font-size: 0.78rem; opacity: 0.7; }
.inv-chrome .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}
.inv-chrome .footer-contact .footer-phone + .footer-email::before {
    content: "|";
    margin-right: 8px;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .inv-chrome .site-header { padding: 12px 16px; }
    .inv-chrome .main-nav a { padding: 6px 10px; }
}
