/* ============================================================
   ImageConverter.ca — Header + Footer (v2.1)
   Load AFTER imageconverter.css. Footer rules are scoped under
   .site-footer so they reliably override any leftover footer
   styles still living in imageconverter.css.
   ============================================================ */

:root {
    --ic-red: #AA0000;
    --ic-red-dark: #b91c1c;
    --ic-ink: #111827;
    --ic-text: #374151;
    --ic-gray: #6b7280;
    --ic-gray-light: #9ca3af;
    --ic-line: #e5e7eb;
    --ic-bg-soft: #f9fafb;
    --ic-chrome-max: 1180px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--ic-line);
}

.site-header .nav {
    max-width: var(--ic-chrome-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto; /* push links to the right */
}

.site-header .brand-logo {
    width: 36px;
    height: 36px;
    display: block;
    flex: none;
}

.site-header .brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ic-ink);
    line-height: 1;
    white-space: nowrap;
}

.site-header .brand-dot {
    color: var(--ic-red);
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-header .nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ic-text);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}

.site-header .nav-links a:hover {
    color: var(--ic-red);
}

.site-header .nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ic-line);
    border-radius: 10px;
    background: #fff;
    color: var(--ic-ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-header .nav-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 860px) {
    .site-header .nav {
        height: auto;
        min-height: 60px;
        gap: 10px 12px;
        flex-wrap: wrap;
        align-content: center;
    }

    .site-header .brand-name {
        font-size: 19px;
    }

    .site-header .nav-toggle {
        display: inline-flex;
    }

    .site-header .nav-links {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 8px;
        border-top: 1px solid var(--ic-line);
    }

    .site-header .nav-links.open {
        display: flex;
    }

    .site-header .nav-links a {
        padding: 13px 4px;
        font-size: 16px;
        border-bottom: 1px solid var(--ic-line);
    }

    .site-header .nav-links a:last-child {
        border-bottom: 0;
    }
}

/* ---------------- Footer ---------------- */
.site-footer {
    margin-top: 72px;
    background: var(--ic-bg-soft);
    border-top: 1px solid var(--ic-line);
    color: var(--ic-text);
}

.site-footer .footer-inner {
    max-width: var(--ic-chrome-max);
    margin: 0 auto;
    padding: 56px 24px 44px;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 44px 32px;
}

/* brand block */
.site-footer .footer-brand {
    max-width: 320px;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.site-footer .footer-logo .brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ic-ink);
    line-height: 1;
}

.site-footer .footer-logo .brand-dot {
    color: var(--ic-red);
}

.site-footer .footer-logo .brand-logo {
    width: 34px;
    height: 34px;
    display: block;
    flex: none;
}

.site-footer .footer-tagline {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ic-gray);
}

.site-footer .footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer .footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ic-text);
    background: #fff;
    border: 1px solid var(--ic-line);
    border-radius: 999px;
    padding: 6px 12px;
}

.site-footer .footer-pill svg {
    width: 14px;
    height: 14px;
    color: var(--ic-red);
}

/* link columns */
.site-footer .footer-col h2 {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ic-gray);
}

.site-footer .footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--ic-text);
    text-decoration: none;
    padding: 7px 0;
    transition: color 0.15s ease;
}

.site-footer .footer-col a:hover {
    color: var(--ic-red);
}

/* bottom bar */
.site-footer .footer-bottom {
    margin-top: 56px;
    padding-top: 30px;
    border-top: 1px solid var(--ic-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--ic-gray);
}

.site-footer .footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.site-footer .footer-meta a {
    color: var(--ic-gray);
    text-decoration: none;
    font-weight: 500;
}

.site-footer .footer-meta a:hover {
    color: var(--ic-red);
}

.site-footer .footer-built {
    color: var(--ic-gray-light);
}

/* tablet + mobile: brand spans full width, links become 2 x 2 */
@media (max-width: 860px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 34px 24px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-inner {
        padding: 40px 20px 32px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}