/* ===== Header layout ===== */

    .site-header {
        position: fixed;
        z-index: 100;
        background: var(--deep-navy);
        left: 0;
        right: 0;
        top: 0;
    }

    .main-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        padding-bottom: 10px;
    }

    .header-contact {
        display: flex;
        flex-grow: 1;
        margin-right: 140px;
        max-width: 450px;
        flex-direction: column;
        align-items: center;
        gap: 0.18rem;
        padding: 0.3rem 50px;
        border-radius: 15px;
        background: radial-gradient(circle at top, rgba(15, 23, 42, 0.4), transparent 55%);
        border: 1px solid rgba(148, 163, 184, 0.35);
        min-width: 0;
    }

    @media (max-width: 552px) {
        .header-contact {
            display: none;
        }
    }

    .header-contact-label {
        font-size: 0.67rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #9ca3af;
    }

    .header-contact-address {
        font-size: 1rem;
        color: #e5e7eb;
        text-align: center;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .header-agency-heading {
        font: 600 0.875rem/1.3 'Inter', sans-serif;
        color: var(--off-white);
        margin: 0;
    }

    .header-contact-address address {
        margin: 0;
        font-style: normal;
    }

    .header-agency-location {
        display: inline;
        margin: 0;
        font: inherit;
        color: inherit;
    }

    .header-agency-location .header-agency-heading {
        display: block;
    }

    .header-agency-location + address {
        display: inline;
    }

    .header-contact-phone-row {
        display: flex;
        align-items: center;
        margin-top: 0.05rem;
        gap: 12px;
    }

    .header-contact-phone-label {
        font-size: 1rem;
        color: #9ca3af;
        margin-right: 0.4rem;
        min-width: 30px;
    }

    .header-contact-phone {
        font-size: 0.9rem;
        text-wrap-mode: nowrap;
        font-weight: 600;
        width: 100%;
        letter-spacing: 0.04em;
        color: var(--off-white);
        text-decoration: none;
        padding: 0.15rem 0.65rem;
        border-radius: 999px;
        background-color: rgb(98 61 123 / 15%);
        border: 1px solid rgba(56, 189, 248, 0.55);
        box-shadow: 0 12px 30px rgb(37 99 235 / 0%);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        justify-content: flex-end; /* keep links to the right within their flex area */
    }

    /* visible focus for keyboard users */
    .logo:focus-visible,
    .header-contact-phone:focus-visible,
    .contact-btn:focus-visible,
    .assign-modal-close:focus-visible,
    .assign-btn-primary:focus-visible,
    .assign-btn-ghost:focus-visible,
    .assign-file-dropzone:focus-visible,
    .assign-form-input:focus-visible {
        outline: 3px solid rgba(214, 255, 252, 0.9);
        outline-offset: 3px;
        border-radius: 12px;
    }

    @media (max-width: 1250px) {
        .header-contact {
            margin-right: unset;
        }
    }

    @media (max-width: 1024px) {

        .header-contact-phone-row {
            align-items: flex-start;
            flex-direction: column;
        }

        .main-nav {
            flex-wrap: wrap;
            row-gap: 0.8rem;
        }

        .header-contact {
            max-width: 350px;
            padding: 0.3rem 20px;
            order: 3;
        }

        .logo {
            order: 1;
        }

        .nav-links {
            order: 3;
            margin-left: auto;
        }

        .header-contact {
            padding: 0.3rem 30px;
        }
    }

    @media (max-width: 880px) {
        .header-contact-address {
            font-size: 0.78rem;
        }

        .header-contact-phone-row {
            margin-top: 0.15rem;
        }

        .header-contact-phone {
            font-size: 0.86rem;
        }

        .main-nav {
            padding-inline: 1.1rem;
        }

        .header-contact-phone-row {
            flex-direction: column;
        }

        .header-contact {
            flex-shrink: 1;
        }
    }

    @media (max-width: 545px) {
        .main-nav {
            flex-direction: column;
            align-content: center;
            justify-content: center;
        }

        .header-contact {
            margin-left: unset;
            width: 100%;
        }

        .nav-links {
            margin-left: unset;
        }
    }

    @media (max-width: 552px) {
        .main-nav-with-heading {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 0.35rem 0.65rem;
            padding-inline: 0;
        }

        .main-nav-with-heading .header-contact {
            display: flex;
            grid-column: 1 / -1;
            grid-row: 2;
            max-width: none;
            margin: 0;
            padding: 0;
            border: 0;
            background: none;
        }

        .main-nav-with-heading .header-contact-phone-row {
            display: none;
        }
    }

    :root {
        --header-h: 80px; /* fallback */
    }

    /* Put this on the element that wraps ALL page content after the header */
    .page-content {
        padding-top: var(--header-h);
    }

    /* Optional: avoid anchor links hiding under header */
    html {
        scroll-padding-top: var(--header-h);
    }

    /* Utility: screen-reader only text (for accessibility) */
    .sr-only {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
