/* Pixometry marketing site — the site's header, footer and cookie banner for
 * pages that do NOT load Bootstrap and css/style.css.
 *
 * A landing page delivered by marketing brings its own design and its own
 * class names (.btn, .hero, .small, section …) that Bootstrap and style.css
 * would restyle. Such a page links this file instead and uses the same
 * header and footer markup as index.html, with `pix-container` where the
 * other pages say `container`.
 *
 * The values are transcribed from css/style.css (.pix-nav, .pix-footer,
 * .btn-pix-primary, .pix-consent-*) and from the Bootstrap 5.3 classes that
 * markup uses. Everything is scoped under .pix-nav, .pix-footer or
 * .pix-consent-banner, so nothing reaches the page's own content.
 *
 * Typography and colours are set here, never inherited: the header and footer
 * look the same on every page of the site, whatever font the page itself uses
 * and whether the page follows the visitor's dark mode or not (the logo is
 * black lettering on a transparent background, so the header stays light).
 *
 * When the header or footer changes in css/style.css, change it here too.
 * First used by /keep-using-remove-bg/ (Nov 30 2026).
 */

.pix-nav,
.pix-footer,
.pix-consent-banner {
    --pix-paper: #F6F5F3;
    --pix-text: #2c3e50;
    --pix-text-soft: #4a5568;
    --pix-muted: #8899a6;
    --pix-cta: #198754;
    --pix-cta-hover: #157347;
    --pix-border-soft: #e5e2dd;
    --pix-panel: #FBFAF7;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: normal;
    color-scheme: light;
}

/* Bootstrap's .container: same gutters and breakpoints, so the logo sits
   where it sits on the rest of the site at every width. */
.pix-nav .pix-container,
.pix-footer .pix-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}
@media (min-width: 576px)  { .pix-nav .pix-container, .pix-footer .pix-container { max-width: 540px; } }
@media (min-width: 768px)  { .pix-nav .pix-container, .pix-footer .pix-container { max-width: 720px; } }
@media (min-width: 992px)  { .pix-nav .pix-container, .pix-footer .pix-container { max-width: 960px; } }
@media (min-width: 1200px) { .pix-nav .pix-container, .pix-footer .pix-container { max-width: 1140px; } }
@media (min-width: 1400px) { .pix-nav .pix-container, .pix-footer .pix-container { max-width: 1320px; } }

/* ─── Header ───────────────────────────────────────────────────────── */

.pix-nav {
    background-color: var(--pix-paper);
    border-bottom: 1px solid var(--pix-border-soft);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
}
.pix-nav .navbar-brand { display: flex; align-items: center; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.pix-nav .navbar-brand img { height: 32px; width: auto; display: block; }
.pix-nav .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--pix-text-soft);
    text-decoration: none;
    transition: color .15s ease-in-out;
}
.pix-nav .nav-link:hover { color: var(--pix-text); }
.pix-nav .btn-pix-primary {
    background-color: var(--pix-cta);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color .15s;
    text-decoration: none;
    display: inline-block;
}
.pix-nav .btn-pix-primary:hover { background-color: var(--pix-cta-hover); color: #fff; }

/* The Bootstrap utilities the header markup uses. */
.pix-nav .d-flex { display: flex; }
.pix-nav .d-none { display: none; }
.pix-nav .align-items-center { align-items: center; }
.pix-nav .justify-content-between { justify-content: space-between; }
.pix-nav .gap-1 { gap: .25rem; }
.pix-nav .gap-2 { gap: .5rem; }
@media (min-width: 992px) { .pix-nav .d-lg-flex { display: flex; } }
.pix-nav [hidden] { display: none !important; }

/* Nine links since the Photoshop and News links (Nov 30 2026): between 992 and 1399 px
   they are set closer together so that nothing wraps and the logo keeps its
   size. The same rules are in css/style.css. */
@media (min-width: 992px) {
    .pix-nav .nav-link,
    .pix-nav .btn-pix-primary { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .pix-nav .nav-link { padding: 0.5rem 0.5rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pix-nav .nav-link { padding: 0.5rem 0.3rem; font-size: 0.875rem; }
    .pix-nav .btn-pix-primary { padding: 0.6rem 1rem; font-size: 0.875rem; }
}

/* ─── Footer ───────────────────────────────────────────────────────── */

.pix-footer {
    background-color: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    padding: 3rem 0 2rem;
    color: var(--pix-text-soft);
    font-size: 0.9rem;
}
.pix-footer .pix-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.pix-footer .pix-footer-about { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .pix-footer .pix-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .pix-footer .pix-footer-cols { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
    .pix-footer .pix-footer-about { grid-column: auto; }
}
.pix-footer .pix-footer-about img { height: 24px; width: auto; display: block; margin-bottom: 1rem; }
.pix-footer .pix-footer-about p { max-width: 32ch; font-size: 0.9rem; margin: 0; color: var(--pix-text-soft); }
.pix-footer h5 {
    color: var(--pix-text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.pix-footer a {
    color: var(--pix-text-soft);
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
}
.pix-footer a:hover { color: var(--pix-cta); }
.pix-footer .pix-footer-note {
    margin: 2.5rem 0 0;
    font-size: 0.85rem;
    color: var(--pix-muted);
    text-align: center;
}
.pix-footer .copyright {
    border-top: 1px solid var(--pix-border-soft);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--pix-muted);
}
.pix-footer .pix-footer-note + .copyright { margin-top: 1.5rem; }

/* ─── Cookie banner (built by js/tracking.js) ──────────────────────── */

.pix-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--pix-panel);
    border-top: 1px solid var(--pix-border-soft);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    animation: pix-consent-slide-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pix-consent-slide-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.pix-consent-banner .pix-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.pix-consent-banner .pix-consent-text {
    margin: 0;
    flex: 1;
    color: var(--pix-text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}
.pix-consent-banner .pix-consent-link { color: var(--pix-cta); text-decoration: underline; }
.pix-consent-banner .pix-consent-buttons { display: flex; gap: 0.6rem; flex-shrink: 0; }
.pix-consent-banner .pix-consent-btn {
    padding: 0.55rem 1.2rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.pix-consent-banner .pix-consent-reject {
    background: transparent;
    color: var(--pix-text-soft);
    border-color: var(--pix-border-soft);
}
.pix-consent-banner .pix-consent-reject:hover { background: #f3f3f3; }
.pix-consent-banner .pix-consent-accept { background: var(--pix-cta); color: #fff; }
.pix-consent-banner .pix-consent-accept:hover { background: var(--pix-cta-hover); }
@media (max-width: 640px) {
    .pix-consent-banner .pix-consent-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
    .pix-consent-banner .pix-consent-buttons { justify-content: flex-end; }
}
